public class NonInterestingColumnsMetadata extends Object implements Metadata
Constructor and Description |
---|
NonInterestingColumnsMetadata(Map<SchemaPath,ColumnStatistics<?>> columnsStatistics) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsExactStatistics(StatisticsKind<?> statisticsKind)
Checks whether specified statistics kind is set in this non-column statistics
and it corresponds to the exact statistics value.
|
ColumnMetadata |
getColumn(SchemaPath name)
Returns metadata description for the specified column
|
Map<SchemaPath,ColumnStatistics<?>> |
getColumnsStatistics()
Returns statistics stored in current metadata represented
as Map of column
SchemaPath s and corresponding ColumnStatistics . |
ColumnStatistics<?> |
getColumnStatistics(SchemaPath columnName)
Returns statistics for specified column stored in current metadata.
|
MetadataInfo |
getMetadataInfo() |
TupleMetadata |
getSchema()
Returns schema stored in current metadata represented as
TupleMetadata . |
<V> V |
getStatistic(StatisticsKind<V> statisticsKind)
Returns value of non-column statistics which corresponds to specified
StatisticsKind . |
<V> V |
getStatisticsForColumn(SchemaPath columnName,
StatisticsKind<V> statisticsKind)
Returns value of column statistics which corresponds to specified
StatisticsKind
for column with specified columnName . |
TableInfo |
getTableInfo() |
TableMetadataUnit |
toMetadataUnit()
Converts
Metadata implementation into TableMetadataUnit instance
which will be used to write data into Drill Metastore Tables. |
public NonInterestingColumnsMetadata(Map<SchemaPath,ColumnStatistics<?>> columnsStatistics)
public Map<SchemaPath,ColumnStatistics<?>> getColumnsStatistics()
Metadata
SchemaPath
s and corresponding ColumnStatistics
.getColumnsStatistics
in interface Metadata
public ColumnStatistics<?> getColumnStatistics(SchemaPath columnName)
Metadata
getColumnStatistics
in interface Metadata
columnName
- column whose statistics should be returnedpublic TupleMetadata getSchema()
Metadata
TupleMetadata
.public <V> V getStatistic(StatisticsKind<V> statisticsKind)
Metadata
StatisticsKind
.getStatistic
in interface Metadata
statisticsKind
- statistics kind whose value should be returnedpublic boolean containsExactStatistics(StatisticsKind<?> statisticsKind)
Metadata
containsExactStatistics
in interface Metadata
statisticsKind
- statistics kind to checkpublic <V> V getStatisticsForColumn(SchemaPath columnName, StatisticsKind<V> statisticsKind)
Metadata
StatisticsKind
for column with specified columnName
.getStatisticsForColumn
in interface Metadata
columnName
- name of the columnstatisticsKind
- statistics kind whose value should be returnedpublic ColumnMetadata getColumn(SchemaPath name)
Metadata
getColumn
in interface Metadata
name
- column name, whose metadata type info should be returnedColumnMetadata
schema description of the columnpublic TableInfo getTableInfo()
getTableInfo
in interface Metadata
public MetadataInfo getMetadataInfo()
getMetadataInfo
in interface Metadata
public TableMetadataUnit toMetadataUnit()
Metadata
Metadata
implementation into TableMetadataUnit
instance
which will be used to write data into Drill Metastore Tables.toMetadataUnit
in interface Metadata
Copyright © 1970 The Apache Software Foundation. All rights reserved.