Tabnine Logo
RexProgram.getExprCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getExprCount
method
in
org.apache.calcite.rex.RexProgram

Best Java code snippets using org.apache.calcite.rex.RexProgram.getExprCount (Showing top 5 results out of 315)

origin: org.apache.calcite/calcite-core

@Override public RelOptCost computeSelfCost(RelOptPlanner planner,
  RelMetadataQuery mq) {
 double dRows = mq.getRowCount(this);
 double dCpu = mq.getRowCount(getInput())
   * program.getExprCount();
 double dIo = 0;
 return planner.getCostFactory().makeCost(dRows, dCpu, dIo);
}
origin: Qihoo360/Quicksql

@Override public RelOptCost computeSelfCost(RelOptPlanner planner,
  RelMetadataQuery mq) {
 double dRows = mq.getRowCount(this);
 double dCpu = mq.getRowCount(getInput())
   * program.getExprCount();
 double dIo = 0;
 return planner.getCostFactory().makeCost(dRows, dCpu, dIo);
}
origin: Qihoo360/Quicksql

public RelOptCost computeSelfCost(RelOptPlanner planner,
  RelMetadataQuery mq) {
 double dRows = mq.getRowCount(this);
 double dCpu = mq.getRowCount(getInput())
   * program.getExprCount();
 double dIo = 0;
 return planner.getCostFactory().makeCost(dRows, dCpu, dIo);
}
origin: org.apache.calcite/calcite-core

public RelOptCost computeSelfCost(RelOptPlanner planner,
  RelMetadataQuery mq) {
 double dRows = mq.getRowCount(this);
 double dCpu = mq.getRowCount(getInput())
   * program.getExprCount();
 double dIo = 0;
 return planner.getCostFactory().makeCost(dRows, dCpu, dIo);
}
origin: qubole/quark

final int[] adjustments = new int[calc.getProgram().getExprCount()];
if (rightJoinChild == calc.getInput()) {
 int offset = leftJoinChild.getRowType().getFieldList().size();
org.apache.calcite.rexRexProgramgetExprCount

Javadoc

Returns the number of expressions in this program.

Popular methods of RexProgram

  • expandLocalRef
    Fully expands a RexLocalRef back into a pure RexNode tree containing no RexLocalRefs (reversing the
  • getCondition
    Returns the field reference of this program's filter condition, or null if there is no condition.
  • getInputRowType
    Returns the type of the input row to the program.
  • getProjectList
    Returns an array of references to the expressions which this program is to project. Never null, may
  • create
    Creates a program which calculates projections and filters rows based upon a condition. Does not att
  • getExprList
    Returns the common sub-expressions of this program.The list is never null but may be empty; each the
  • normalize
  • toString
  • <init>
    Creates a program.The expressions must be valid: they must not contain common expressions, forward r
  • containsAggs
    Returns whether this program contains windowed aggregate functions
  • getOutputRowType
    Returns the type of the output row from this program.
  • collectExplainTerms
    Collects the expressions in this program into a list of terms and values.
  • getOutputRowType,
  • collectExplainTerms,
  • countTrivial,
  • createIdentity,
  • deduceCollations,
  • explainCalc,
  • getCollations,
  • getPermutation,
  • getSourceField

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • 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
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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