Tabnine Logo
RelMdUtil.checkInputForCollationAndLimit
Code IndexAdd Tabnine to your IDE (free)

How to use
checkInputForCollationAndLimit
method
in
org.apache.calcite.rel.metadata.RelMdUtil

Best Java code snippets using org.apache.calcite.rel.metadata.RelMdUtil.checkInputForCollationAndLimit (Showing top 4 results out of 315)

origin: Qihoo360/Quicksql

final RelMetadataQuery mq = call.getMetadataQuery();
for (RelNode input : union.getInputs()) {
 if (!RelMdUtil.checkInputForCollationAndLimit(mq, input,
   sort.getCollation(), sort.offset, sort.fetch)) {
  ret = false;
origin: org.apache.calcite/calcite-core

final RelMetadataQuery mq = call.getMetadataQuery();
for (RelNode input : union.getInputs()) {
 if (!RelMdUtil.checkInputForCollationAndLimit(mq, input,
   sort.getCollation(), sort.offset, sort.fetch)) {
  ret = false;
origin: Qihoo360/Quicksql

if (RelMdUtil.checkInputForCollationAndLimit(mq, join.getLeft(),
  sort.getCollation(), sort.offset, sort.fetch)) {
 return;
if (RelMdUtil.checkInputForCollationAndLimit(mq, join.getRight(),
  rightCollation, sort.offset, sort.fetch)) {
 return;
origin: org.apache.calcite/calcite-core

if (RelMdUtil.checkInputForCollationAndLimit(mq, join.getLeft(),
  sort.getCollation(), sort.offset, sort.fetch)) {
 return;
if (RelMdUtil.checkInputForCollationAndLimit(mq, join.getRight(),
  rightCollation, sort.offset, sort.fetch)) {
 return;
org.apache.calcite.rel.metadataRelMdUtilcheckInputForCollationAndLimit

Javadoc

Returns whether a relational expression is already sorted and has fewer rows than the sum of offset and limit.

If this is the case, it is safe to push down a org.apache.calcite.rel.core.Sort with limit and optional offset.

Popular methods of RelMdUtil

  • guessSelectivity
    Returns default estimates for selectivities, in the absence of stats.
  • areColumnsDefinitelyUnique
    Returns true if the columns represented in a bit mask are definitely known to form a unique column s
  • areColumnsDefinitelyUniqueWhenNullsFiltered
    Returns true if the columns represented in a bit mask are definitely known to form a unique column s
  • getJoinDistinctRowCount
    Computes the number of distinct rows for a set of keys returned from a join. Also known as NDV (numb
  • minusPreds
    Takes the difference between two predicates, removing from the first any predicates also in the seco
  • estimateFilteredRows
  • linear
    Returns a point on a line.The result is always a value between minY and maxY, even if x is not betwe
  • getJoinRowCount
    Returns an estimate of the number of rows returned by a Join.
  • areColumnsUnique
  • areColumnsUniqueWhenNullsFiltered
  • capInfinity
    Caps a double value at Double.MAX_VALUE if it's currently infinity
  • cardOfProjExpr
    Computes the cardinality of a particular expression from the projection list.
  • capInfinity,
  • cardOfProjExpr,
  • computeSemiJoinSelectivity,
  • getJoinPopulationSize,
  • getMinusRowCount,
  • getSelectivityValue,
  • getSemiJoinRowCount,
  • getUnionAllRowCount,
  • makeSemiJoinSelectivityRexNode

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JTextField (javax.swing)
  • Top Sublime Text 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