Interface ColumnStatistics
-
- All Superinterfaces:
Serializable
public interface ColumnStatistics extends Serializable
An interface to read the column statistics from statistics collectors.
-
-
Method Summary
Modifier and Type Method Description intgetCardinality()intgetLengthOfLargestElement()intgetLengthOfShortestElement()intgetMaxNumberOfMultiValues()default intgetMaxRowLengthInBytes()ObjectgetMaxValue()ObjectgetMinValue()intgetNumPartitions()PartitionFunctiongetPartitionFunction()Map<String,String>getPartitionFunctionConfig()Set<Integer>getPartitions()intgetTotalNumberOfEntries()ObjectgetUniqueValuesSet()default booleanisFixedLength()booleanisSorted()Whether or not the data in this column is in ascending order.
-
-
-
Method Detail
-
getMinValue
Object getMinValue()
- Returns:
- Minimum value of the column
-
getMaxValue
Object getMaxValue()
- Returns:
- Maximum value of the column
-
getUniqueValuesSet
Object getUniqueValuesSet()
- Returns:
- An array of elements that has the unique values for this column, sorted order.
-
getCardinality
int getCardinality()
- Returns:
- The number of unique values of this column.
-
getLengthOfShortestElement
int getLengthOfShortestElement()
- Returns:
- For variable length objects, returns the length of the shortest value. For others, returns -1.
-
getLengthOfLargestElement
int getLengthOfLargestElement()
- Returns:
- For variable length objects, returns the length of the longest value. For others, returns -1.
-
isFixedLength
default boolean isFixedLength()
-
isSorted
boolean isSorted()
Whether or not the data in this column is in ascending order.- Returns:
- true if the data is in ascending order.
-
getTotalNumberOfEntries
int getTotalNumberOfEntries()
- Returns:
- total number of entries
-
getMaxNumberOfMultiValues
int getMaxNumberOfMultiValues()
- Returns:
- For multi-valued columns, returns the max number of values in a single occurrence of the column, otherwise 0.
-
getMaxRowLengthInBytes
default int getMaxRowLengthInBytes()
- Returns:
- the length of the largest row in bytes for variable length types
-
getPartitionFunction
PartitionFunction getPartitionFunction()
-
getNumPartitions
int getNumPartitions()
-
-