Uses of Class
org.apache.drill.metastore.statistics.ColumnStatistics
Package
Description
Drill expression materialization and evaluation facilities.
-
Uses of ColumnStatistics in org.apache.drill.exec.expr
Modifier and TypeMethodDescriptionstatic <V> ColumnStatistics<V>
StatisticsProvider.getColumnStatistics
(V minVal, V maxVal, long nullsCount, TypeProtos.MinorType type) ReturnsColumnStatistics
instance with set min, max values and nulls count statistics specified in the arguments.static <V> ColumnStatistics<V>
StatisticsProvider.getConstantColumnStatistics
(V minMaxValue, LogicalExpression expr) ReturnsColumnStatistics
instance with min and max values set tominMaxValue
and nulls count set to 0.static <V> ColumnStatistics<V>
StatisticsProvider.getConstantColumnStatistics
(V minMaxValue, TypeProtos.MinorType type) ReturnsColumnStatistics
instance with min and max values set tominMaxValue
and nulls count set to 0.StatisticsProvider.visitBooleanConstant
(ValueExpressions.BooleanExpression expr, Void value) StatisticsProvider.visitDateConstant
(ValueExpressions.DateExpression expr, Void value) StatisticsProvider.visitDoubleConstant
(ValueExpressions.DoubleExpression expr, Void value) StatisticsProvider.visitFloatConstant
(ValueExpressions.FloatExpression expr, Void value) StatisticsProvider.visitFunctionHolderExpression
(FunctionHolderExpression holderExpr, Void value) StatisticsProvider.visitIntConstant
(ValueExpressions.IntExpression expr, Void value) StatisticsProvider.visitLongConstant
(ValueExpressions.LongExpression expr, Void value) StatisticsProvider.visitQuotedStringConstant
(ValueExpressions.QuotedString expr, Void value) StatisticsProvider.visitTimeConstant
(ValueExpressions.TimeExpression expr, Void value) StatisticsProvider.visitTimeStampConstant
(ValueExpressions.TimeStampExpression expr, Void value) StatisticsProvider.visitTypedFieldExpr
(TypedFieldExpr typedFieldExpr, Void value) StatisticsProvider.visitUnknown
(LogicalExpression e, Void value) StatisticsProvider.visitVarDecimalConstant
(ValueExpressions.VarDecimalExpression expr, Void value) Modifier and TypeMethodDescriptionstatic boolean
IsPredicate.isNullOrEmpty
(ColumnStatistics<?> stat) ModifierConstructorDescriptionStatisticsProvider
(Map<SchemaPath, ColumnStatistics<?>> columnStatMap, long rowCount, UdfUtilities udfUtilities) -
Uses of ColumnStatistics in org.apache.drill.exec.physical.base
Modifier and TypeMethodDescriptionprotected <T extends Metadata>
Map<SchemaPath,ColumnStatistics<?>> AbstractGroupScanWithMetadata.GroupScanWithMetadataFilterer.getImplicitColumnStatistics
(OptionManager optionManager, T metadata, Map<SchemaPath, ColumnStatistics<?>> columnsStatistics) Modifier and TypeMethodDescriptionprotected <T extends Metadata>
Map<SchemaPath,ColumnStatistics<?>> AbstractGroupScanWithMetadata.GroupScanWithMetadataFilterer.getImplicitColumnStatistics
(OptionManager optionManager, T metadata, Map<SchemaPath, ColumnStatistics<?>> columnsStatistics) -
Uses of ColumnStatistics in org.apache.drill.exec.store.ischema
ModifierConstructorDescriptionColumn
(String catalog, String schemaName, String tableName, String columnName, ColumnMetadata columnMetadata, ColumnStatistics<?> columnStatistics, int index, boolean isNested) -
Uses of ColumnStatistics in org.apache.drill.exec.store.parquet
Modifier and TypeMethodDescriptionstatic Map<SchemaPath,
ColumnStatistics<?>> ParquetTableMetadataUtils.addImplicitColumnsStatistics
(Map<SchemaPath, ColumnStatistics<?>> columnsStatistics, List<SchemaPath> columns, List<String> partitionValues, OptionManager optionManager, org.apache.hadoop.fs.Path location, boolean supportsFileImplicitColumns) Creates new map based on specifiedcolumnStatistics
with added statistics for implicit and partition (dir) columns.static Map<SchemaPath,
ColumnStatistics<?>> ParquetTableMetadataUtils.getColumnStatistics
(TupleMetadata schema, DrillStatsTable statistics) Returns map with schema path andColumnStatistics
obtained from specifiedDrillStatsTable
for all columns from specifiedBaseTableMetadata
.static Map<SchemaPath,
ColumnStatistics<?>> ParquetTableMetadataUtils.getRowGroupColumnStatistics
(MetadataBase.ParquetTableMetadataBase tableMetadata, MetadataBase.RowGroupMetadata rowGroupMetadata) Converts specifiedMetadataBase.RowGroupMetadata
into the map ofColumnStatistics
instances with column names as keys.Modifier and TypeMethodDescriptionstatic Map<SchemaPath,
ColumnStatistics<?>> ParquetTableMetadataUtils.addImplicitColumnsStatistics
(Map<SchemaPath, ColumnStatistics<?>> columnsStatistics, List<SchemaPath> columns, List<String> partitionValues, OptionManager optionManager, org.apache.hadoop.fs.Path location, boolean supportsFileImplicitColumns) Creates new map based on specifiedcolumnStatistics
with added statistics for implicit and partition (dir) columns.static RowsMatch
FilterEvaluatorUtils.matches
(LogicalExpression expr, Map<SchemaPath, ColumnStatistics<?>> columnsStatistics, TupleMetadata schema, long rowCount, UdfUtilities udfUtilities, FunctionLookupContext functionImplementationRegistry, Set<SchemaPath> schemaPathsInExpr) static <T extends Comparable<T>>
RowsMatchFilterEvaluatorUtils.matches
(FilterPredicate<T> parquetPredicate, Map<SchemaPath, ColumnStatistics<?>> columnsStatistics, long rowCount, TupleMetadata fileMetadata, Set<SchemaPath> schemaPathsInExpr, UdfUtilities udfUtilities) -
Uses of ColumnStatistics in org.apache.drill.metastore.metadata
Modifier and TypeFieldDescriptionprotected Map<SchemaPath,
ColumnStatistics<?>> BaseMetadata.BaseMetadataBuilder.columnsStatistics
protected final Map<SchemaPath,
ColumnStatistics<?>> BaseMetadata.columnsStatistics
Modifier and TypeMethodDescriptionBaseMetadata.getColumnStatistics
(SchemaPath columnName) Metadata.getColumnStatistics
(SchemaPath columnName) Returns statistics for specified column stored in current metadata.NonInterestingColumnsMetadata.getColumnStatistics
(SchemaPath columnName) Modifier and TypeMethodDescriptionBaseMetadata.getColumnsStatistics()
Metadata.getColumnsStatistics()
Returns statistics stored in current metadata represented as Map of columnSchemaPath
s and correspondingColumnStatistics
.NonInterestingColumnsMetadata.getColumnsStatistics()
Modifier and TypeMethodDescriptionBaseTableMetadata.cloneWithStats
(Map<SchemaPath, ColumnStatistics<?>> columnStatistics, List<StatisticsHolder<?>> tableStatistics) TableMetadata.cloneWithStats
(Map<SchemaPath, ColumnStatistics<?>> columnStatistics, List<StatisticsHolder<?>> tableStatistics) BaseMetadata.BaseMetadataBuilder.columnsStatistics
(Map<SchemaPath, ColumnStatistics<?>> columnsStatistics) ModifierConstructorDescriptionNonInterestingColumnsMetadata
(Map<SchemaPath, ColumnStatistics<?>> columnsStatistics) -
Uses of ColumnStatistics in org.apache.drill.metastore.statistics
Modifier and TypeMethodDescriptionColumnStatistics.cloneWith
(ColumnStatistics<T> sourceStatistics) Returns newColumnStatistics
instance with overridden statistics taken from specifiedColumnStatistics
.ColumnStatistics.genericClone
(ColumnStatistics<?> sourceStatistics) static ColumnStatistics<?>
Modifier and TypeMethodDescriptionColumnStatistics.cloneWith
(ColumnStatistics<T> sourceStatistics) Returns newColumnStatistics
instance with overridden statistics taken from specifiedColumnStatistics
.ColumnStatistics.genericClone
(ColumnStatistics<?> sourceStatistics) ColumnStatisticsKind.getFrom
(ColumnStatistics<?> metadata) Returns value which corresponds to this statistic kind, obtained from specifiedBaseMetadata
.<V> V
ColumnStatisticsKind.getValueStatistic
(ColumnStatistics<V> metadata) Modifier and TypeMethodDescriptionCollectableColumnStatisticsKind.mergeStatistics
(List<? extends ColumnStatistics<?>> statistics) Returns column statistics value received by collecting specifiedColumnStatistics
.ColumnStatisticsKind.mergeStatistics
(List<? extends ColumnStatistics<?>> statistics) -
Uses of ColumnStatistics in org.apache.drill.metastore.util
Modifier and TypeMethodDescriptionstatic <T extends BaseMetadata>
Map<SchemaPath,ColumnStatistics<?>> TableMetadataUtils.mergeColumnsStatistics
(Collection<T> metadataList, Set<SchemaPath> columns, List<CollectableColumnStatisticsKind<?>> statisticsToCollect) Merges list of specified metadata into the map ofColumnStatistics
with columns as keys.