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

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

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

origin: Qihoo360/Quicksql

/**
 * Given a list of collations which hold for the input to this program,
 * returns a list of collations which hold for its output. The result is
 * mutable and sorted.
 */
public List<RelCollation> getCollations(List<RelCollation> inputCollations) {
 final List<RelCollation> outputCollations = new ArrayList<>();
 deduceCollations(
   outputCollations,
   inputRowType.getFieldCount(), projects,
   inputCollations);
 return outputCollations;
}
origin: org.apache.calcite/calcite-core

/**
 * Given a list of collations which hold for the input to this program,
 * returns a list of collations which hold for its output. The result is
 * mutable and sorted.
 */
public List<RelCollation> getCollations(List<RelCollation> inputCollations) {
 final List<RelCollation> outputCollations = new ArrayList<>();
 deduceCollations(
   outputCollations,
   inputRowType.getFieldCount(), projects,
   inputCollations);
 return outputCollations;
}
org.apache.calcite.rexRexProgramdeduceCollations

Javadoc

Given a list of expressions and a description of which are ordered, populates a list of collations, sorted in natural order.

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,
  • explainCalc,
  • getCollations,
  • getPermutation,
  • getSourceField

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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