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

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

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

origin: apache/lens

@Override
public void updateDimensionTable(LensSessionHandle sessionid, XDimensionTable dimensionTable) throws LensException {
 try (SessionContext ignored = new SessionContext(sessionid)){
  getClient(sessionid).alterCubeDimensionTable(dimensionTable);
  log.info("Updated dimension table " + dimensionTable.getTableName());
 } catch (HiveException exc) {
  throw new LensException(exc);
 }
}
origin: org.apache.lens/lens-cube

public void alterCubeDimensionTable(XDimensionTable dimensionTable) throws LensException, HiveException {
 alterCubeDimensionTable(dimensionTable.getTableName(),
  JAXBUtils.cubeDimTableFromDimTable(dimensionTable),
  JAXBUtils.tableDescPrefixMapFromXStorageTables(dimensionTable.getStorageTables()));
}
/**
origin: apache/lens

public void alterCubeDimensionTable(XDimensionTable dimensionTable)
 throws LensException, HiveException {
 alterCubeDimensionTable(dimensionTable.getTableName(),
  JAXBUtils.cubeDimTableFromDimTable(dimensionTable),
  JAXBUtils.tableDescPrefixMapFromXStorageTables(dimensionTable.getStorageTables()));
}
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

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.alterCubeDimensionTable(cubeDim.getName(), cubeDim, storageTables);
origin: apache/lens

client.alterCubeDimensionTable(dimTblName, dimTable, storageTables);
client.alterCubeDimensionTable(dimTblName, dimTable, storageTables);
storageTables.put(c4, s1);
dimTable.alterSnapshotDumpPeriod(c4, null);
client.alterCubeDimensionTable(dimTblName, dimTable, storageTables);
CubeDimensionTable altered2 = client.getDimensionTable(dimTblName);
assertTrue(client.tableExists(c1TableName));
org.apache.lens.cube.metadataCubeMetastoreClientalterCubeDimensionTable

Javadoc

Alter dimension table with new dimension definition and underlying storage tables as well

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
  • alterCubeFactTable
  • alterDimension
    Alter dimension specified by the dimension name to new definition
  • 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

  • Finding current android device location
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook extensions
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