Package org.apache.orc
Interface ColumnStatistics
- All Known Subinterfaces:
BinaryColumnStatistics,BooleanColumnStatistics,CollectionColumnStatistics,DateColumnStatistics,DecimalColumnStatistics,DoubleColumnStatistics,GeospatialColumnStatistics,IntegerColumnStatistics,StringColumnStatistics,TimestampColumnStatistics
- All Known Implementing Classes:
ColumnStatisticsImpl,ColumnStatisticsImpl.BinaryStatisticsImpl,ColumnStatisticsImpl.StringStatisticsImpl
public interface ColumnStatistics
Statistics that are available for all types of columns.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the number of bytes for this column.longGet the number of values in this column.booleanhasNull()Returns true if there are nulls in the scope of column statistics.
-
Method Details
-
getNumberOfValues
long getNumberOfValues()Get the number of values in this column. It will differ from the number of rows because of NULL values and repeated values.- Returns:
- the number of values
-
hasNull
boolean hasNull()Returns true if there are nulls in the scope of column statistics.- Returns:
- true if null present else false
-
getBytesOnDisk
long getBytesOnDisk()Get the number of bytes for this column.- Returns:
- the number of bytes
-