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

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

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

origin: apache/lens

@Override
public void dropSegmentation(LensSessionHandle sessionid, String cubeSegName) throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  getClient(sessionid).dropSegmentation(cubeSegName);
  log.info("Dropped segemntation " + cubeSegName);
 }
}
origin: org.apache.lens/lens-cube

public void alterSegmentation(String segName, Segmentation seg)
 throws HiveException, LensException {
 getTableWithTypeFailFast(segName, CubeTableType.SEGMENTATION);
 if (!(getSegmentation(segName) == seg)) {
  dropSegmentation(segName);
  createSegmentation(seg);
  updateSegmentationCache(segName);
 }
}
origin: apache/lens

public void alterSegmentation(String segName, Segmentation seg)
 throws HiveException, LensException {
 getTableWithTypeFailFast(segName, CubeTableType.SEGMENTATION);
 checkIfAuthorized();
 if (!(getSegmentation(segName) == seg)) {
  dropSegmentation(segName);
  createSegmentation(seg);
  updateSegmentationCache(segName);
 }
}
origin: apache/lens

client.dropSegmentation(segmentName);
assertFalse(client.tableExists(segmentName));
org.apache.lens.cube.metadataCubeMetastoreClientdropSegmentation

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,
  • createDimension,
  • createSegmentation,
  • dropStorageFromDim,
  • dropStorageFromFact,
  • getAllCubes,
  • getAllDimensionTables,
  • getAllFacts

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
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