public interface Statistics
| Modifier and Type | Field and Description |
|---|---|
static long |
AVG_COLUMN_SIZE |
static double |
AVG_ROWSIZE_UNKNOWN |
static double |
ROWCOUNT_HUGE |
static double |
ROWCOUNT_UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
buildUniqueIndexIdentifier(IndexDescriptor idx)
Returns a unique index identifier
|
double |
getAvgRowSize(String tabIdxName,
boolean isIndexScan)
Returns the average row size for the specified filter condition
|
double |
getLeadingRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
DrillScanRelBase scanRel)
Returns the leading rowcount for the specified filter condition
Leading rowcount means rowcount for filter condition only on leading index columns.
|
double |
getRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
org.apache.calcite.rel.RelNode scanRel)
Returns the rowcount for the specified filter condition
|
boolean |
initialize(org.apache.calcite.rex.RexNode condition,
DrillScanRelBase scanRel,
IndexCallContext context) |
boolean |
isStatsAvailable()
Returns whether statistics are available.
|
static final double ROWCOUNT_UNKNOWN
static final double ROWCOUNT_HUGE
static final double AVG_ROWSIZE_UNKNOWN
static final long AVG_COLUMN_SIZE
boolean isStatsAvailable()
String buildUniqueIndexIdentifier(IndexDescriptor idx)
idx - - Index specified as a IndexDescriptordouble getRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
org.apache.calcite.rel.RelNode scanRel)
condition - - Filter specified as a RexNodetabIdxName - - The index name generated using buildUniqueIndexIdentifierscanRel - - The current scan reldouble getLeadingRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
DrillScanRelBase scanRel)
condition - - Filter specified as a RexNodetabIdxName - - The index name generated using buildUniqueIndexIdentifierscanRel - - The current scan reldouble getAvgRowSize(String tabIdxName, boolean isIndexScan)
tabIdxName - - The index name generated using buildUniqueIndexIdentifierisIndexScan - - Whether the current rel is an index scan (false for primary table)boolean initialize(org.apache.calcite.rex.RexNode condition,
DrillScanRelBase scanRel,
IndexCallContext context)
Copyright © 2021 The Apache Software Foundation. All rights reserved.