Class RangeIndexType
- java.lang.Object
-
- org.apache.pinot.segment.spi.index.AbstractIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
- org.apache.pinot.segment.local.segment.index.range.RangeIndexType
-
- All Implemented Interfaces:
ConfigurableFromIndexLoadingConfig<RangeIndexConfig>,IndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
public class RangeIndexType extends AbstractIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator> implements ConfigurableFromIndexLoadingConfig<RangeIndexConfig>
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEX_DISPLAY_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedRangeIndexType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnConfigDeserializer<RangeIndexConfig>createDeserializer()CombinedInvertedIndexCreatorcreateIndexCreator(IndexCreationContext context, RangeIndexConfig indexConfig)IndexHandlercreateIndexHandler(SegmentDirectory segmentDirectory, Map<String,FieldIndexConfigs> configsByCol, Schema schema, TableConfig tableConfig)protected IndexReaderFactory<RangeIndexReader>createReaderFactory()Map<String,RangeIndexConfig>fromIndexLoadingConfig(IndexLoadingConfig indexLoadingConfig)Returns a map that can be used to get the index config.RangeIndexConfiggetDefaultConfig()StringgetFileExtension(ColumnMetadata columnMetadata)Class<RangeIndexConfig>getIndexConfigClass()StringgetPrettyName()protected voidhandleIndexSpecificCleanup(TableConfig tableConfig)static RangeIndexReaderread(PinotDataBuffer dataBuffer, ColumnMetadata metadata)-
Methods inherited from class org.apache.pinot.segment.spi.index.AbstractIndexType
convertToNewFormat, equals, getConfig, getId, getReaderFactory, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.IndexType
createMutableIndex, getIndexReader
-
-
-
-
Field Detail
-
INDEX_DISPLAY_NAME
public static final String INDEX_DISPLAY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndexConfigClass
public Class<RangeIndexConfig> getIndexConfigClass()
- Specified by:
getIndexConfigClassin interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
fromIndexLoadingConfig
public Map<String,RangeIndexConfig> fromIndexLoadingConfig(IndexLoadingConfig indexLoadingConfig)
Description copied from interface:ConfigurableFromIndexLoadingConfigReturns a map that can be used to get the index config. This map is used with higher priority whenever the index configuration needs to be read from anIndexLoadingConfig. SometimesIndexLoadingConfigis not completely configured andIndexLoadingConfig.getAllKnownColumns()does not return all columns in the table. Therefore the returned map may not have an entry for each column in the actual schema.- Specified by:
fromIndexLoadingConfigin interfaceConfigurableFromIndexLoadingConfig<RangeIndexConfig>- Returns:
- a map whose keys are the column names and the values are the index configuration for that column.
-
getDefaultConfig
public RangeIndexConfig getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
getPrettyName
public String getPrettyName()
- Specified by:
getPrettyNamein interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
createDeserializer
public ColumnConfigDeserializer<RangeIndexConfig> createDeserializer()
- Specified by:
createDeserializerin classAbstractIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
createIndexCreator
public CombinedInvertedIndexCreator createIndexCreator(IndexCreationContext context, RangeIndexConfig indexConfig) throws IOException
- Specified by:
createIndexCreatorin interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>- Throws:
IOException
-
createReaderFactory
protected IndexReaderFactory<RangeIndexReader> createReaderFactory()
- Specified by:
createReaderFactoryin classAbstractIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
read
public static RangeIndexReader read(PinotDataBuffer dataBuffer, ColumnMetadata metadata) throws IndexReaderConstraintException
- Throws:
IndexReaderConstraintException
-
getFileExtension
public String getFileExtension(ColumnMetadata columnMetadata)
- Specified by:
getFileExtensionin interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
createIndexHandler
public IndexHandler createIndexHandler(SegmentDirectory segmentDirectory, Map<String,FieldIndexConfigs> configsByCol, @Nullable Schema schema, @Nullable TableConfig tableConfig)
- Specified by:
createIndexHandlerin interfaceIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
handleIndexSpecificCleanup
protected void handleIndexSpecificCleanup(TableConfig tableConfig)
- Overrides:
handleIndexSpecificCleanupin classAbstractIndexType<RangeIndexConfig,RangeIndexReader,CombinedInvertedIndexCreator>
-
-