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

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

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

origin: apache/lens

public void alterSegmentation(XSegmentation cubeSeg) throws LensException,
 HiveException {
 alterSegmentation(cubeSeg.getName(), segmentationFromXSegmentation(cubeSeg));
}
origin: org.apache.lens/lens-cube

public void alterSegmentation(XSegmentation cubeSeg) throws LensException, HiveException {
 alterSegmentation(cubeSeg.getName(), segmentationFromXSegmentation(cubeSeg));
}
origin: apache/lens

@Override
public void updateSegmentation(LensSessionHandle sessionid, XSegmentation cubeSeg) throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  getClient(sessionid).alterSegmentation(cubeSeg);
  log.info("Updated segmentation " + cubeSeg.getName());
 } catch (HiveException e) {
  throw new LensException(e);
 }
}
origin: apache/lens

public <T extends Equals & HashCode & ToString> void updateEntity(String name, T entity)
 throws LensException, HiveException {
 if (entity instanceof XStorage) {
  alterStorage((XStorage) entity);
 } else if (entity instanceof XCube) {
  alterCube((XCube)entity);
 } else if (entity instanceof XDimension) {
  alterDimension((XDimension) entity);
 } else if (entity instanceof XFact) {
  alterCubeFactTable((XFact) entity);
 } else if (entity instanceof XDimensionTable) {
  alterCubeDimensionTable((XDimensionTable) entity);
 } else if (entity instanceof XSegmentation) {
  alterSegmentation((XSegmentation) entity);
 } else {
  throw new LensException("Unable to alter entity " + entity + " as it's unrecognizable: " + entity.getClass());
 }
}
origin: org.apache.lens/lens-cube

public <T extends Equals & HashCode & ToString> void updateEntity(String name, T entity)
 throws LensException, HiveException {
 if (entity instanceof XStorage) {
  alterStorage((XStorage) entity);
 } else if  (entity instanceof XCube) {
  alterCube((XCube)entity);
 } else if (entity instanceof XDimension) {
  alterDimension((XDimension) entity);
 } else if (entity instanceof XFact) {
  alterCubeFactTable((XFact) entity);
 } else if (entity instanceof XDimensionTable) {
  alterCubeDimensionTable((XDimensionTable) entity);
 } else if (entity instanceof XSegmentation) {
  alterSegmentation((XSegmentation) entity);
 } else {
  throw new LensException("Unable to alter entity " + entity + " as it's unrecognizable: " + entity.getClass());
 }
}
origin: apache/lens

segmentation.alterBaseCubeName("segCubeAltered");
segmentation.alterWeight(100.0);
client.alterSegmentation(segmentName, segmentation);
client.alterSegmentation(segmentName, segmentation);
assertEquals(client.getSegmentation(segmentName).getSegments().size(), 3);
org.apache.lens.cube.metadataCubeMetastoreClientalterSegmentation

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
  • createCube
    Create cube in metastore defined by Cube or DerivedCube object
  • createDimension
    Create dimension in metastore defined by Dimension object
  • createCube,
  • createDimension,
  • createSegmentation,
  • dropSegmentation,
  • dropStorageFromDim,
  • dropStorageFromFact,
  • getAllCubes,
  • getAllDimensionTables,
  • getAllFacts

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTextField (javax.swing)
  • Best IntelliJ plugins
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