Class NonInterestingColumnsMetadata
java.lang.Object
org.apache.drill.metastore.metadata.NonInterestingColumnsMetadata
- All Implemented Interfaces:
Metadata
Represents a metadata for the non-interesting columns. Since the refresh command doesn't store the non-interesting
columns stats in the cache file, there is a need to mark column statistics of non-interesting as unknown to
differentiate the non-interesting columns from non-existent columns. Since the sole purpose of this class is to store
column statistics for non-interesting columns, some methods like getSchema, get, getColumn are not applicable
to NonInterestingColumnsMetadata.
-
Constructor Summary
ConstructorsConstructorDescriptionNonInterestingColumnsMetadata(Map<SchemaPath, ColumnStatistics<?>> columnsStatistics) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsExactStatistics(StatisticsKind<?> statisticsKind) Checks whether specified statistics kind is set in this non-column statistics and it corresponds to the exact statistics value.getColumn(SchemaPath name) Returns metadata description for the specified columnReturns statistics stored in current metadata represented as Map of columnSchemaPaths and correspondingColumnStatistics.getColumnStatistics(SchemaPath columnName) Returns statistics for specified column stored in current metadata.Returns schema stored in current metadata represented asTupleMetadata.<V> VgetStatistic(StatisticsKind<V> statisticsKind) Returns value of non-column statistics which corresponds to specifiedStatisticsKind.<V> VgetStatisticsForColumn(SchemaPath columnName, StatisticsKind<V> statisticsKind) Returns value of column statistics which corresponds to specifiedStatisticsKindfor column with specifiedcolumnName.ConvertsMetadataimplementation intoTableMetadataUnitinstance which will be used to write data into Drill Metastore Tables.
-
Constructor Details
-
NonInterestingColumnsMetadata
-
-
Method Details
-
getColumnsStatistics
Description copied from interface:MetadataReturns statistics stored in current metadata represented as Map of columnSchemaPaths and correspondingColumnStatistics.- Specified by:
getColumnsStatisticsin interfaceMetadata- Returns:
- statistics stored in current metadata
-
getColumnStatistics
Description copied from interface:MetadataReturns statistics for specified column stored in current metadata.- Specified by:
getColumnStatisticsin interfaceMetadata- Parameters:
columnName- column whose statistics should be returned- Returns:
- statistics for specified column
-
getSchema
Description copied from interface:MetadataReturns schema stored in current metadata represented asTupleMetadata. -
getStatistic
Description copied from interface:MetadataReturns value of non-column statistics which corresponds to specifiedStatisticsKind.- Specified by:
getStatisticin interfaceMetadata- Parameters:
statisticsKind- statistics kind whose value should be returned- Returns:
- value of non-column statistics
-
containsExactStatistics
Description copied from interface:MetadataChecks whether specified statistics kind is set in this non-column statistics and it corresponds to the exact statistics value.- Specified by:
containsExactStatisticsin interfaceMetadata- Parameters:
statisticsKind- statistics kind to check- Returns:
- true if value which corresponds to the specified statistics kind is exact
-
getStatisticsForColumn
Description copied from interface:MetadataReturns value of column statistics which corresponds to specifiedStatisticsKindfor column with specifiedcolumnName.- Specified by:
getStatisticsForColumnin interfaceMetadata- Parameters:
columnName- name of the columnstatisticsKind- statistics kind whose value should be returned- Returns:
- value of column statistics
-
getColumn
Description copied from interface:MetadataReturns metadata description for the specified column- Specified by:
getColumnin interfaceMetadata- Parameters:
name- column name, whose metadata type info should be returned- Returns:
ColumnMetadataschema description of the column
-
getTableInfo
- Specified by:
getTableInfoin interfaceMetadata
-
getMetadataInfo
- Specified by:
getMetadataInfoin interfaceMetadata
-
toMetadataUnit
Description copied from interface:MetadataConvertsMetadataimplementation intoTableMetadataUnitinstance which will be used to write data into Drill Metastore Tables.- Specified by:
toMetadataUnitin interfaceMetadata- Returns:
- metadata unit instance
-