Class ColumnMetadataImpl
- java.lang.Object
-
- org.apache.pinot.segment.spi.index.metadata.ColumnMetadataImpl
-
- All Implemented Interfaces:
ColumnMetadata
public class ColumnMetadataImpl extends Object implements ColumnMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColumnMetadataImpl.Builder
-
Method Summary
Modifier and Type Method Description static ColumnMetadataImpl.Builderbuilder()booleanequals(Object o)static ColumnMetadataImplfromPropertiesConfiguration(String column, org.apache.commons.configuration.PropertiesConfiguration config)intgetBitsPerElement()intgetCardinality()NOTE: When a realtime segment has no-dictionary columns, the cardinality for those columns will be set toConstants.UNKNOWN_CARDINALITY.intgetColumnMaxLength()FieldSpecgetFieldSpec()Map<ColumnIndexType,Long>getIndexSizeMap()intgetMaxNumberOfMultiValues()Comparable<?>getMaxValue()Comparable<?>getMinValue()chargetPaddingCharacter()PartitionFunctiongetPartitionFunction()Set<Integer>getPartitions()intgetTotalDocs()intgetTotalNumberOfEntries()booleanhasDictionary()inthashCode()booleanisAutoGenerated()booleanisMinMaxValueInvalid()booleanisSorted()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.ColumnMetadata
getColumnName, getDataType, getFieldType, isSingleValue
-
-
-
-
Method Detail
-
getFieldSpec
public FieldSpec getFieldSpec()
- Specified by:
getFieldSpecin interfaceColumnMetadata
-
getTotalDocs
public int getTotalDocs()
- Specified by:
getTotalDocsin interfaceColumnMetadata
-
getCardinality
public int getCardinality()
Description copied from interface:ColumnMetadataNOTE: When a realtime segment has no-dictionary columns, the cardinality for those columns will be set toConstants.UNKNOWN_CARDINALITY.- Specified by:
getCardinalityin interfaceColumnMetadata
-
isSorted
public boolean isSorted()
- Specified by:
isSortedin interfaceColumnMetadata
-
getMinValue
public Comparable<?> getMinValue()
- Specified by:
getMinValuein interfaceColumnMetadata
-
getMaxValue
public Comparable<?> getMaxValue()
- Specified by:
getMaxValuein interfaceColumnMetadata
-
isMinMaxValueInvalid
public boolean isMinMaxValueInvalid()
- Specified by:
isMinMaxValueInvalidin interfaceColumnMetadata
-
hasDictionary
public boolean hasDictionary()
- Specified by:
hasDictionaryin interfaceColumnMetadata
-
getColumnMaxLength
public int getColumnMaxLength()
- Specified by:
getColumnMaxLengthin interfaceColumnMetadata
-
getPaddingCharacter
public char getPaddingCharacter()
- Specified by:
getPaddingCharacterin interfaceColumnMetadata
-
getBitsPerElement
public int getBitsPerElement()
- Specified by:
getBitsPerElementin interfaceColumnMetadata
-
getMaxNumberOfMultiValues
public int getMaxNumberOfMultiValues()
- Specified by:
getMaxNumberOfMultiValuesin interfaceColumnMetadata
-
getTotalNumberOfEntries
public int getTotalNumberOfEntries()
- Specified by:
getTotalNumberOfEntriesin interfaceColumnMetadata
-
getPartitionFunction
@Nullable public PartitionFunction getPartitionFunction()
- Specified by:
getPartitionFunctionin interfaceColumnMetadata
-
getPartitions
@Nullable public Set<Integer> getPartitions()
- Specified by:
getPartitionsin interfaceColumnMetadata
-
getIndexSizeMap
@Nullable public Map<ColumnIndexType,Long> getIndexSizeMap()
- Specified by:
getIndexSizeMapin interfaceColumnMetadata
-
isAutoGenerated
public boolean isAutoGenerated()
- Specified by:
isAutoGeneratedin interfaceColumnMetadata
-
fromPropertiesConfiguration
public static ColumnMetadataImpl fromPropertiesConfiguration(String column, org.apache.commons.configuration.PropertiesConfiguration config)
-
builder
public static ColumnMetadataImpl.Builder builder()
-
-