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

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

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

origin: org.apache.lens/lens-cube

/**
 * Alter dimension specified by the dimension name to new definition
 *
 * @param newDim  The new dimension definition
 * @throws HiveException
 */
public void alterDimension(XDimension newDim) throws HiveException, LensException {
 alterDimension(newDim.getName(), JAXBUtils.dimensionFromXDimension(newDim));
}
origin: apache/lens

/**
 * Alter dimension specified by the dimension name to new definition
 *
 * @param newDim  The new dimension definition
 * @throws HiveException
 */
public void alterDimension(XDimension newDim) throws HiveException, LensException {
 alterDimension(newDim.getName(), JAXBUtils.dimensionFromXDimension(newDim));
}
origin: apache/lens

@Override
public void updateDimension(LensSessionHandle sessionid, String dimName, XDimension dimension)
 throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  getClient(sessionid).alterDimension(dimension);
  log.info("Altered dimension " + dimName);
 } 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

client.alterDimension(city.getName(), city);
Dimension cityAltered = client.getDimension(city.getName());
assertEquals(1, cityAltered.getExpressionByName("stateAndCountry").getExpressions().size());
toAlter.alterJoinChain(zipState);
client.alterDimension(zipDim.getName(), toAlter);
Dimension altered = client.getDimension(zipDim.getName());
org.apache.lens.cube.metadataCubeMetastoreClientalterDimension

Javadoc

Alter dimension specified by the dimension name to new definition

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
  • alterSegmentation
  • 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

  • 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
  • Best plugins for Eclipse
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