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

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

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

origin: apache/lens

@Override
public List<String> getAllDimensionNames(LensSessionHandle sessionid)
 throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  Collection<Dimension> dimensions = getClient(sessionid).getAllDimensions();
  if (dimensions != null && !dimensions.isEmpty()) {
   List<String> names = new ArrayList<>(dimensions.size());
   for (Dimension dim : dimensions) {
    names.add(dim.getName());
   }
   return names;
  }
 }
 return null;
}
origin: apache/lens

client.createDimension(countryDim);
assertEquals(client.getAllDimensions().size(), 4);
assertTrue(client.tableExists(cityDim.getName()));
assertTrue(client.tableExists(stateDim.getName()));
org.apache.lens.cube.metadataCubeMetastoreClientgetAllDimensions

Javadoc

Get all cubes in metastore

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
  • Reference (javax.naming)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim 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