congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StorageContext.enableStreamAggregate
Code IndexAdd Tabnine to your IDE (free)

How to use
enableStreamAggregate
method
in
org.apache.kylin.storage.StorageContext

Best Java code snippets using org.apache.kylin.storage.StorageContext.enableStreamAggregate (Showing top 2 results out of 315)

origin: apache/kylin

private void enableStreamAggregateIfBeneficial(Cuboid cuboid, Set<TblColRef> groupsD, StorageContext context) {
  CubeDesc cubeDesc = cuboid.getCubeDesc();
  boolean enabled = cubeDesc.getConfig().isStreamAggregateEnabled();
  Set<TblColRef> shardByInGroups = Sets.newHashSet();
  for (TblColRef col : cubeDesc.getShardByColumns()) {
    if (groupsD.contains(col)) {
      shardByInGroups.add(col);
    }
  }
  if (!shardByInGroups.isEmpty()) {
    enabled = false;
    logger.debug("Aggregate partition results is not beneficial because shard by columns in groupD: {0}",
         shardByInGroups);
  }
  if (!context.isNeedStorageAggregation()) {
    enabled = false;
    logger.debug("Aggregate partition results is not beneficial because no storage aggregation");
  }
  if (enabled) {
    context.enableStreamAggregate();
  }
}
origin: org.apache.kylin/kylin-core-storage

private void enableStreamAggregateIfBeneficial(Cuboid cuboid, Set<TblColRef> groupsD, StorageContext context) {
  CubeDesc cubeDesc = cuboid.getCubeDesc();
  boolean enabled = cubeDesc.getConfig().isStreamAggregateEnabled();
  Set<TblColRef> shardByInGroups = Sets.newHashSet();
  for (TblColRef col : cubeDesc.getShardByColumns()) {
    if (groupsD.contains(col)) {
      shardByInGroups.add(col);
    }
  }
  if (!shardByInGroups.isEmpty()) {
    enabled = false;
    logger.debug("Aggregate partition results is not beneficial because shard by columns in groupD: {0}",
         shardByInGroups);
  }
  if (!context.isNeedStorageAggregation()) {
    enabled = false;
    logger.debug("Aggregate partition results is not beneficial because no storage aggregation");
  }
  if (enabled) {
    context.enableStreamAggregate();
  }
}
org.apache.kylin.storageStorageContextenableStreamAggregate

Popular methods of StorageContext

  • setThreshold
  • <init>
  • getCuboid
  • getLimit
  • hasSort
  • isExactAggregation
  • isLimitEnabled
  • setConnUrl
  • setCuboid
  • setExactAggregation
  • applyLimitPushDown
  • enableCoprocessor
  • applyLimitPushDown,
  • enableCoprocessor,
  • enableLimit,
  • getAliasMap,
  • getConnUrl,
  • getFinalPushDownLimit,
  • getMapping,
  • getOffset,
  • getProcessedRowCount

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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