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

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

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

origin: apache/kylin

public SegmentCubeTupleIterator(CubeSegmentScanner scanner, Cuboid cuboid, Set<TblColRef> selectedDimensions, //
    Set<FunctionDesc> selectedMetrics, TupleInfo returnTupleInfo, StorageContext context) {
  this.scanner = scanner;
  this.cuboid = cuboid;
  this.selectedDimensions = selectedDimensions;
  this.selectedMetrics = selectedMetrics;
  this.tupleInfo = returnTupleInfo;
  this.tuple = new Tuple(returnTupleInfo);
  this.context = context;
  CuboidToGridTableMapping mapping = context.getMapping();
  int[] gtDimsIdx = mapping.getDimIndexes(selectedDimensions);
  int[] gtMetricsIdx = mapping.getMetricsIndexes(selectedMetrics);
  // gtColIdx = gtDimsIdx + gtMetricsIdx
  int[] gtColIdx = new int[gtDimsIdx.length + gtMetricsIdx.length];
  System.arraycopy(gtDimsIdx, 0, gtColIdx, 0, gtDimsIdx.length);
  System.arraycopy(gtMetricsIdx, 0, gtColIdx, gtDimsIdx.length, gtMetricsIdx.length);
  this.gtValues = getGTValuesIterator(scanner.iterator(), scanner.getScanRequest(), gtDimsIdx, gtMetricsIdx);
  this.cubeTupleConverter = ((GTCubeStorageQueryBase) context.getStorageQuery()).newCubeTupleConverter(
      scanner.cubeSeg, cuboid, selectedDimensions, selectedMetrics, gtColIdx, tupleInfo);
}
origin: apache/kylin

this.cuboid = cuboid;
final CuboidToGridTableMapping mapping = context.getMapping();
origin: org.apache.kylin/kylin-core-storage

public SegmentCubeTupleIterator(CubeSegmentScanner scanner, Cuboid cuboid, Set<TblColRef> selectedDimensions, //
    Set<FunctionDesc> selectedMetrics, TupleInfo returnTupleInfo, StorageContext context) {
  this.scanner = scanner;
  this.cuboid = cuboid;
  this.selectedDimensions = selectedDimensions;
  this.selectedMetrics = selectedMetrics;
  this.tupleInfo = returnTupleInfo;
  this.tuple = new Tuple(returnTupleInfo);
  this.context = context;
  CuboidToGridTableMapping mapping = context.getMapping();
  int[] gtDimsIdx = mapping.getDimIndexes(selectedDimensions);
  int[] gtMetricsIdx = mapping.getMetricsIndexes(selectedMetrics);
  // gtColIdx = gtDimsIdx + gtMetricsIdx
  int[] gtColIdx = new int[gtDimsIdx.length + gtMetricsIdx.length];
  System.arraycopy(gtDimsIdx, 0, gtColIdx, 0, gtDimsIdx.length);
  System.arraycopy(gtMetricsIdx, 0, gtColIdx, gtDimsIdx.length, gtMetricsIdx.length);
  this.gtValues = getGTValuesIterator(scanner.iterator(), scanner.getScanRequest(), gtDimsIdx, gtMetricsIdx);
  this.cubeTupleConverter = ((GTCubeStorageQueryBase) context.getStorageQuery()).newCubeTupleConverter(
      scanner.cubeSeg, cuboid, selectedDimensions, selectedMetrics, gtColIdx, tupleInfo);
}
origin: org.apache.kylin/kylin-core-storage

this.cuboid = cuboid;
final CuboidToGridTableMapping mapping = context.getMapping();
org.apache.kylin.storageStorageContextgetMapping

Popular methods of StorageContext

  • setThreshold
  • <init>
  • getCuboid
  • getLimit
  • hasSort
  • isExactAggregation
  • isLimitEnabled
  • setConnUrl
  • setCuboid
  • setExactAggregation
  • applyLimitPushDown
  • enableCoprocessor
  • applyLimitPushDown,
  • enableCoprocessor,
  • enableLimit,
  • enableStreamAggregate,
  • getAliasMap,
  • getConnUrl,
  • getFinalPushDownLimit,
  • 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
  • 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