Codota Logo
RelMdUtil.getJoinRowCount
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now