Tabnine Logo
RelOptUtil$InputReferencedVisitor.apply
Code IndexAdd Tabnine to your IDE (free)

How to use
apply
method
in
org.apache.calcite.plan.RelOptUtil$InputReferencedVisitor

Best Java code snippets using org.apache.calcite.plan.RelOptUtil$InputReferencedVisitor.apply (Showing top 6 results out of 315)

origin: apache/hive

ImmutableSet.Builder<Integer> projsFromInputJoinKeysInChildSchema = ImmutableSet.builder();
InputReferencedVisitor irvLeft = new InputReferencedVisitor();
irvLeft.apply(joinExprs.get(i));
projsFromInputJoinKeysInChildSchema.addAll(irvLeft.inputPosReferenced);
projsJoinKeysInChildSchema.add(projsFromInputJoinKeysInChildSchema.build());
origin: apache/drill

ImmutableSet.Builder<Integer> projsFromInputJoinKeysInChildSchema = ImmutableSet.builder();
InputReferencedVisitor irvLeft = new InputReferencedVisitor();
irvLeft.apply(joinExprs.get(i));
projsFromInputJoinKeysInChildSchema.addAll(irvLeft.inputPosReferenced);
projsJoinKeysInChildSchema.add(projsFromInputJoinKeysInChildSchema.build());
origin: com.facebook.presto.hive/hive-apache

ImmutableSet.Builder<Integer> projsFromInputJoinKeysInChildSchema = ImmutableSet.builder();
InputReferencedVisitor irvLeft = new InputReferencedVisitor();
irvLeft.apply(joinKeyExprs.get(i));
projsFromInputJoinKeysInChildSchema.addAll(irvLeft.inputPosReferenced);
projsJoinKeysInChildSchema.add(projsFromInputJoinKeysInChildSchema.build());
origin: com.facebook.presto.hive/hive-apache

private Double getMaxNDV(RexCall call) {
 double tmpNDV;
 double maxNDV = 1.0;
 InputReferencedVisitor irv;
 for (RexNode op : call.getOperands()) {
  if (op instanceof RexInputRef) {
   tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel,
     ((RexInputRef) op).getIndex());
   if (tmpNDV > maxNDV)
    maxNDV = tmpNDV;
  } else {
   irv = new InputReferencedVisitor();
   irv.apply(op);
   for (Integer childProjIndx : irv.inputPosReferenced) {
    tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel, childProjIndx);
    if (tmpNDV > maxNDV)
     maxNDV = tmpNDV;
   }
  }
 }
 return maxNDV;
}
origin: apache/drill

private Double getMaxNDV(RexCall call) {
 double tmpNDV;
 double maxNDV = 1.0;
 InputReferencedVisitor irv;
 RelMetadataQuery mq = RelMetadataQuery.instance();
 for (RexNode op : call.getOperands()) {
  if (op instanceof RexInputRef) {
   tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel, mq,
     ((RexInputRef) op).getIndex());
   if (tmpNDV > maxNDV)
    maxNDV = tmpNDV;
  } else {
   irv = new InputReferencedVisitor();
   irv.apply(op);
   for (Integer childProjIndx : irv.inputPosReferenced) {
    tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel,
      mq, childProjIndx);
    if (tmpNDV > maxNDV)
     maxNDV = tmpNDV;
   }
  }
 }
 return maxNDV;
}
origin: apache/hive

private Double getMaxNDV(RexCall call) {
 double tmpNDV;
 double maxNDV = 1.0;
 InputReferencedVisitor irv;
 for (RexNode op : call.getOperands()) {
  if (op instanceof RexInputRef) {
   tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel, mq,
     ((RexInputRef) op).getIndex());
   if (tmpNDV > maxNDV) {
    maxNDV = tmpNDV;
   }
  } else {
   irv = new InputReferencedVisitor();
   irv.apply(op);
   for (Integer childProjIndx : irv.inputPosReferenced) {
    tmpNDV = HiveRelMdDistinctRowCount.getDistinctRowCount(this.childRel,
      mq, childProjIndx);
    if (tmpNDV > maxNDV) {
     maxNDV = tmpNDV;
    }
   }
  }
 }
 return maxNDV;
}
org.apache.calcite.planRelOptUtil$InputReferencedVisitorapply

Popular methods of RelOptUtil$InputReferencedVisitor

  • <init>

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Reference (javax.naming)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
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