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

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

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

origin: org.apache.lens/lens-cube

boolean latestPartitionExists(String factOrDimTblName, String storageName, String latestPartCol)
 throws HiveException, LensException {
 String storageTableName = MetastoreUtil.getStorageTableName(factOrDimTblName, Storage.getPrefix(storageName));
 if (isDimensionTable(factOrDimTblName)) {
  return dimTableLatestPartitionExists(storageTableName);
 } else {
  return !partitionTimelineCache.noPartitionsExist(factOrDimTblName, storageName, latestPartCol);
 }
}
origin: apache/lens

boolean latestPartitionExists(String factOrDimTblName, String storageName, String latestPartCol)
 throws HiveException, LensException {
 String storageTableName = MetastoreUtil.getStorageTableName(factOrDimTblName, Storage.getPrefix(storageName));
 if (isDimensionTable(factOrDimTblName)) {
  return dimTableLatestPartitionExists(storageTableName);
 } else {
  return !partitionTimelineCache.noPartitionsExist(factOrDimTblName, storageName, latestPartCol);
 }
}
origin: org.apache.lens/lens-cube

foundPart = client.dimTableLatestPartitionExists(tableName);
if (foundPart) {
 log.debug("Adding existing partition {}", StorageConstants.LATEST_PARTITION_VALUE);
origin: apache/lens

foundPart = client.dimTableLatestPartitionExists(tableName);
if (foundPart) {
 log.debug("Adding existing partition {}", StorageConstants.LATEST_PARTITION_VALUE);
origin: apache/lens

assertFalse(client.dimTableLatestPartitionExists(storageTableName));
Map<String, Date> expectedLatestValues = Maps.newHashMap();
Map<String, Date> timeParts = new HashMap<>();
origin: apache/lens

assertFalse(client.dimTableLatestPartitionExists(storageTableName));
assertFalse(client.latestPartitionExists(cubeDim.getName(), c1, getDatePartitionKey()));
assertEquals(client.getAllParts(storageTableName).size(), 0);
assertFalse(client.dimTableLatestPartitionExists(storageTableName));
assertTrue(client.dimTableLatestPartitionExists(storageTableName));
client.dropStorageFromDim(cubeDim.getName(), c1);
assertFalse(client.dimTableLatestPartitionExists(storageTableName));
org.apache.lens.cube.metadataCubeMetastoreClientdimTableLatestPartitionExists

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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • Kernel (java.awt.image)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • Top PhpStorm 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