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

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

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

origin: Qihoo360/Quicksql

public Double getRowCount(Join rel, RelMetadataQuery mq) {
 return RelMdUtil.getJoinRowCount(mq, rel, rel.getCondition());
}
origin: org.apache.calcite/calcite-core

@Override public double estimateRowCount(RelMetadataQuery mq) {
 return Util.first(RelMdUtil.getJoinRowCount(mq, this, condition), 1D);
}
origin: Qihoo360/Quicksql

@Override public double estimateRowCount(RelMetadataQuery mq) {
 return Util.first(RelMdUtil.getJoinRowCount(mq, this, condition), 1D);
}
origin: org.apache.calcite/calcite-core

public Double getRowCount(Join rel, RelMetadataQuery mq) {
 return RelMdUtil.getJoinRowCount(mq, rel, rel.getCondition());
}
origin: org.apache.calcite/calcite-core

/** @deprecated Use {@link RelMdUtil#getJoinRowCount(RelMetadataQuery, Join, RexNode)}. */
@Deprecated // to be removed before 2.0
public static double estimateJoinedRows(
  Join joinRel,
  RexNode condition) {
 final RelMetadataQuery mq = RelMetadataQuery.instance();
 return Util.first(RelMdUtil.getJoinRowCount(mq, joinRel, condition), 1D);
}
origin: Qihoo360/Quicksql

/** @deprecated Use {@link RelMdUtil#getJoinRowCount(RelMetadataQuery, Join, RexNode)}. */
@Deprecated // to be removed before 2.0
public static double estimateJoinedRows(
  Join joinRel,
  RexNode condition) {
 final RelMetadataQuery mq = RelMetadataQuery.instance();
 return Util.first(RelMdUtil.getJoinRowCount(mq, joinRel, condition), 1D);
}
origin: dremio/dremio-oss

/**
 * Copied for {@link RelMdRowCount#getRowCount(Join, RelMetadataQuery)}. We will be removing this
 * function usage in Dremio code in future: TODO: DX-12150
 *
 * @param mq
 * @return
 */
@Override
public double estimateRowCount(RelMetadataQuery mq) {
 if (getCondition().isAlwaysTrue()) {
  return RelMdUtil.getJoinRowCount(mq, this, getCondition());
 }
 return Math.max(mq.getRowCount(getLeft()), mq.getRowCount(getRight()));
}
org.apache.calcite.rel.metadataRelMdUtilgetJoinRowCount

Javadoc

Returns an estimate of the number of rows returned by a Join.

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
  • 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.
  • checkInputForCollationAndLimit
    Returns whether a relational expression is already sorted and has fewer rows than the sum of offset
  • cardOfProjExpr,
  • checkInputForCollationAndLimit,
  • computeSemiJoinSelectivity,
  • getJoinPopulationSize,
  • getMinusRowCount,
  • getSelectivityValue,
  • getSemiJoinRowCount,
  • getUnionAllRowCount,
  • makeSemiJoinSelectivityRexNode

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top PhpStorm 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