Interface SourceStatistics
public interface SourceStatistics
Statistics about a data source for query planning and optimization.
Implementations should provide as much information as available from
the underlying data source metadata.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceStatistics for an individual column. -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<Map<String, SourceStatistics.ColumnStatistics>> Returns per-column statistics, if available.rowCount()Returns the total number of rows in the source, if known.Returns the total size in bytes, if known.
-
Method Details
-
rowCount
OptionalLong rowCount()Returns the total number of rows in the source, if known.- Returns:
- optional row count
-
sizeInBytes
OptionalLong sizeInBytes()Returns the total size in bytes, if known.- Returns:
- optional size in bytes
-
columnStatistics
Returns per-column statistics, if available. The map keys are column names.- Returns:
- optional map of column name to column statistics
-