Tabnine Logo
CubeMetastoreClient.createDimension
Code IndexAdd Tabnine to your IDE (free)

How to use
createDimension
method
in
org.apache.lens.cube.metadata.CubeMetastoreClient

Best Java code snippets using org.apache.lens.cube.metadata.CubeMetastoreClient.createDimension (Showing top 8 results out of 315)

origin: org.apache.lens/lens-cube

public void createDimension(XDimension dim) throws LensException {
 createDimension(JAXBUtils.dimensionFromXDimension(dim));
}
/**
origin: apache/lens

/**
 * Create dimension defined by attributes and properties
 *
 * @param name       Name of the dimension
 * @param attributes Attributes of the dimension
 * @param properties Properties of the dimension
 * @param weight     Weight of the dimension
 * @throws LensException
 */
public void createDimension(String name, Set<CubeDimAttribute> attributes, Map<String, String> properties,
 double weight) throws LensException {
 Dimension dim = new Dimension(name, attributes, properties, weight);
 createDimension(dim);
}
origin: apache/lens

public void createDimension(XDimension dim) throws LensException {
 createDimension(JAXBUtils.dimensionFromXDimension(dim));
}
origin: org.apache.lens/lens-cube

/**
 * Create dimension defined by attributes and properties
 *
 * @param name       Name of the dimension
 * @param attributes Attributes of the dimension
 * @param properties Properties of the dimension
 * @param weight     Weight of the dimension
 * @throws LensException
 */
public void createDimension(String name, Set<CubeDimAttribute> attributes, Map<String, String> properties,
 double weight) throws LensException {
 Dimension dim = new Dimension(name, attributes, properties, weight);
 createDimension(dim);
}
origin: apache/lens

@Override
public void createDimension(LensSessionHandle sessionid, XDimension dimension)
 throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  getClient(sessionid).createDimension(dimension);
  log.info("Created dimension " + dimension.getName());
 }
}
origin: org.apache.lens/lens-cube

public <T extends Equals & HashCode & ToString> void createEntity(T entity) throws LensException {
 if (entity instanceof XStorage) {
  createStorage((XStorage) entity);
 } else if  (entity instanceof XCube) {
  createCube((XCube)entity);
 } else if (entity instanceof XDimension) {
  createDimension((XDimension) entity);
 } else if (entity instanceof XFact) {
  createFactTable((XFact) entity);
 } else if (entity instanceof XDimensionTable) {
  createCubeDimensionTable((XDimensionTable) entity);
 } else if (entity instanceof XSegmentation) {
  createSegmentation((XSegmentation) entity);
 } else {
  throw new LensException("Unable to create entity " + entity + " as it's unrecognizable: "+ entity.getClass());
 }
}
origin: apache/lens

public <T extends Equals & HashCode & ToString> void createEntity(T entity)
 throws LensException {
 if (entity instanceof XStorage) {
  createStorage((XStorage) entity);
 } else if (entity instanceof XCube) {
  createCube((XCube) entity);
 } else if (entity instanceof XDimension) {
  createDimension((XDimension) entity);
 } else if (entity instanceof XFact) {
  createFactTable((XFact) entity);
 } else if (entity instanceof XDimensionTable) {
  createCubeDimensionTable((XDimensionTable) entity);
 } else if (entity instanceof XSegmentation) {
  createSegmentation((XSegmentation) entity);
 } else {
  throw new LensException("Unable to create entity " + entity + " as it's unrecognizable: " + entity.getClass());
 }
}
origin: apache/lens

@Test(priority = 1)
public void testDimension() throws Exception {
 client.createDimension(zipDim);
 client.createDimension(cityDim);
 client.createDimension(stateDim);
 client.createDimension(countryDim);
org.apache.lens.cube.metadataCubeMetastoreClientcreateDimension

Javadoc

Create dimension defined by attributes and properties

Popular methods of CubeMetastoreClient

  • getInstance
    Get the instance of CubeMetastoreClient corresponding to HiveConf
  • getHiveTable
    Get the hive Table corresponding to the name
  • createCubeDimensionTable
  • createStorage
  • getConf
    Get cube metastore client conf
  • addPartitions
    batch addition
  • alterCube
  • alterCubeDimensionTable
  • alterCubeFactTable
  • alterDimension
    Alter dimension specified by the dimension name to new definition
  • alterSegmentation
  • createCube
    Create cube in metastore defined by Cube or DerivedCube object
  • alterSegmentation,
  • createCube,
  • createSegmentation,
  • dropSegmentation,
  • dropStorageFromDim,
  • dropStorageFromFact,
  • getAllCubes,
  • getAllDimensionTables,
  • getAllFacts

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Permission (java.security)
    Legacy security code; do not use.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now