Class BytesColumnPredIndexStatsCollector
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.stats.AbstractColumnStatisticsCollector
-
- org.apache.pinot.segment.local.segment.creator.impl.stats.BytesColumnPredIndexStatsCollector
-
- All Implemented Interfaces:
Serializable,ColumnStatistics
public class BytesColumnPredIndexStatsCollector extends AbstractColumnStatisticsCollector
Extension ofAbstractColumnStatisticsCollectorfor byte[] column type.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.local.segment.creator.impl.stats.AbstractColumnStatisticsCollector
_fieldSpec, _maxNumberOfMultiValues, _sorted, _totalNumberOfEntries, INITIAL_HASH_SET_SIZE
-
-
Constructor Summary
Constructors Constructor Description BytesColumnPredIndexStatsCollector(String column, StatsCollectorConfig statsCollectorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(Object entry)Collects statistics for the given entry (entry can be either single-valued or multi-valued).intgetCardinality()intgetLengthOfLargestElement()intgetLengthOfShortestElement()intgetMaxRowLengthInBytes()ByteArraygetMaxValue()ByteArraygetMinValue()ByteArray[]getUniqueValuesSet()voidseal()-
Methods inherited from class org.apache.pinot.segment.local.segment.creator.impl.stats.AbstractColumnStatisticsCollector
addressSorted, getMaxNumberOfMultiValues, getNumPartitions, getPartitionFunction, getPartitionFunctionConfig, getPartitions, getTotalNumberOfEntries, isPartitionEnabled, isSorted, updatePartition, updateTotalNumberOfEntries
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.creator.ColumnStatistics
isFixedLength
-
-
-
-
Constructor Detail
-
BytesColumnPredIndexStatsCollector
public BytesColumnPredIndexStatsCollector(String column, StatsCollectorConfig statsCollectorConfig)
-
-
Method Detail
-
collect
public void collect(Object entry)
Description copied from class:AbstractColumnStatisticsCollectorCollects statistics for the given entry (entry can be either single-valued or multi-valued).- Specified by:
collectin classAbstractColumnStatisticsCollector
-
getMinValue
public ByteArray getMinValue()
-
getMaxValue
public ByteArray getMaxValue()
-
getUniqueValuesSet
public ByteArray[] getUniqueValuesSet()
-
getLengthOfShortestElement
public int getLengthOfShortestElement()
- Specified by:
getLengthOfShortestElementin interfaceColumnStatistics- Overrides:
getLengthOfShortestElementin classAbstractColumnStatisticsCollector
-
getLengthOfLargestElement
public int getLengthOfLargestElement()
- Specified by:
getLengthOfLargestElementin interfaceColumnStatistics- Overrides:
getLengthOfLargestElementin classAbstractColumnStatisticsCollector
-
getMaxRowLengthInBytes
public int getMaxRowLengthInBytes()
-
getCardinality
public int getCardinality()
-
seal
public void seal()
- Specified by:
sealin classAbstractColumnStatisticsCollector
-
-