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

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

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

origin: Qihoo360/Quicksql

/**
 * Returns whether this program is a permutation of its inputs.
 */
public boolean isPermutation() {
 if (projects.size() != inputRowType.getFieldList().size()) {
  return false;
 }
 for (int i = 0; i < projects.size(); ++i) {
  if (getSourceField(i) < 0) {
   return false;
  }
 }
 return true;
}
origin: org.apache.calcite/calcite-core

/**
 * Returns whether this program is a permutation of its inputs.
 */
public boolean isPermutation() {
 if (projects.size() != inputRowType.getFieldList().size()) {
  return false;
 }
 for (int i = 0; i < projects.size(); ++i) {
  if (getSourceField(i) < 0) {
   return false;
  }
 }
 return true;
}
origin: Qihoo360/Quicksql

/**
 * Returns a permutation, if this program is a permutation, otherwise null.
 */
public Permutation getPermutation() {
 Permutation permutation = new Permutation(projects.size());
 if (projects.size() != inputRowType.getFieldList().size()) {
  return null;
 }
 for (int i = 0; i < projects.size(); ++i) {
  int sourceField = getSourceField(i);
  if (sourceField < 0) {
   return null;
  }
  permutation.set(i, sourceField);
 }
 return permutation;
}
origin: org.apache.calcite/calcite-core

/**
 * Returns a permutation, if this program is a permutation, otherwise null.
 */
public Permutation getPermutation() {
 Permutation permutation = new Permutation(projects.size());
 if (projects.size() != inputRowType.getFieldList().size()) {
  return null;
 }
 for (int i = 0; i < projects.size(); ++i) {
  int sourceField = getSourceField(i);
  if (sourceField < 0) {
   return null;
  }
  permutation.set(i, sourceField);
 }
 return permutation;
}
org.apache.calcite.rexRexProgramgetSourceField

Javadoc

Returns the input field that an output field is populated from, or -1 if it is populated from an expression.

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
  • getExprCount
    Returns the number of expressions in this program.
  • getOutputRowType
    Returns the type of the output row from this program.
  • getExprCount,
  • getOutputRowType,
  • collectExplainTerms,
  • countTrivial,
  • createIdentity,
  • deduceCollations,
  • explainCalc,
  • getCollations,
  • getPermutation

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JComboBox (javax.swing)
  • JList (javax.swing)
  • Best IntelliJ 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