public class MapRDBStatistics extends Object implements Statistics
AVG_COLUMN_SIZE, AVG_ROWSIZE_UNKNOWN, ROWCOUNT_HUGE, ROWCOUNT_UNKNOWN| Constructor and Description |
|---|
MapRDBStatistics() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildUniqueIndexIdentifier(IndexDescriptor idx)
Returns a unique index identifier
|
String |
buildUniqueIndexIdentifier(String tableName,
String idxName) |
double |
getAvgRowSize(String tabIdxName,
boolean isTableScan)
Returns the average row size for the specified filter condition
|
double |
getLeadingRowCount(org.ojai.store.QueryCondition condition,
String tabIdxName)
Returns the number of leading rows satisfying the given FILTER condition
|
double |
getLeadingRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
DrillScanRelBase scanRel)
Returns the number of leading rows satisfying the given FILTER condition
|
double |
getRowCount(org.ojai.store.QueryCondition condition,
String tabIdxName)
Returns the number of rows satisfying the given FILTER condition
|
double |
getRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
org.apache.calcite.rel.RelNode scanRel)
Returns the rowcount for the specified filter condition
|
double |
getRowKeyJoinBackIOFactor() |
boolean |
initialize(org.apache.calcite.rex.RexNode condition,
DrillScanRelBase scanRel,
IndexCallContext context) |
boolean |
isStatsAvailable()
Returns whether statistics are available.
|
public double getRowKeyJoinBackIOFactor()
public boolean isStatsAvailable()
StatisticsisStatsAvailable in interface Statisticspublic String buildUniqueIndexIdentifier(IndexDescriptor idx)
StatisticsbuildUniqueIndexIdentifier in interface Statisticsidx - - Index specified as a IndexDescriptorpublic String buildUniqueIndexIdentifier(String tableName, String idxName)
public double getRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
org.apache.calcite.rel.RelNode scanRel)
StatisticsgetRowCount in interface Statisticscondition - - Filter specified as a RexNodetabIdxName - - The index name generated using buildUniqueIndexIdentifierscanRel - - The current scan relpublic double getRowCount(org.ojai.store.QueryCondition condition,
String tabIdxName)
condition - - FILTER specified as a QueryConditiontabIdxName - - The table/index identifierpublic double getLeadingRowCount(org.apache.calcite.rex.RexNode condition,
String tabIdxName,
DrillScanRelBase scanRel)
getLeadingRowCount in interface Statisticscondition - - FILTER specified as a RexNodetabIdxName - - The table/index identifierscanRel - - The current scanRelpublic double getLeadingRowCount(org.ojai.store.QueryCondition condition,
String tabIdxName)
condition - - FILTER specified as a QueryConditiontabIdxName - - The table/index identifierpublic double getAvgRowSize(String tabIdxName, boolean isTableScan)
StatisticsgetAvgRowSize in interface StatisticstabIdxName - - The index name generated using buildUniqueIndexIdentifierisTableScan - - Whether the current rel is an index scan (false for primary table)public boolean initialize(org.apache.calcite.rex.RexNode condition,
DrillScanRelBase scanRel,
IndexCallContext context)
initialize in interface StatisticsCopyright © 2021 The Apache Software Foundation. All rights reserved.