Class InvertedIndexType
- java.lang.Object
-
- org.apache.pinot.segment.spi.index.AbstractIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
- org.apache.pinot.segment.local.segment.index.inverted.InvertedIndexType
-
- All Implemented Interfaces:
ConfigurableFromIndexLoadingConfig<IndexConfig>,IndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
public class InvertedIndexType extends AbstractIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator> implements ConfigurableFromIndexLoadingConfig<IndexConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvertedIndexType.ReaderFactory-
Nested classes/interfaces inherited from interface org.apache.pinot.segment.spi.index.IndexType
IndexType.BuildLifecycle
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEX_DISPLAY_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedInvertedIndexType()
-
Method Summary
-
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
getIndexBuildLifecycle
-
-
-
-
Field Detail
-
INDEX_DISPLAY_NAME
public static final String INDEX_DISPLAY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndexConfigClass
public Class<IndexConfig> getIndexConfigClass()
- Specified by:
getIndexConfigClassin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
fromIndexLoadingConfig
public Map<String,IndexConfig> 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<IndexConfig>- Returns:
- a map whose keys are the column names and the values are the index configuration for that column.
-
getDefaultConfig
public IndexConfig getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
getPrettyName
public String getPrettyName()
- Specified by:
getPrettyNamein interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
createDeserializer
public ColumnConfigDeserializer<IndexConfig> createDeserializer()
- Specified by:
createDeserializerin classAbstractIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
createIndexCreator
public DictionaryBasedInvertedIndexCreator createIndexCreator(IndexCreationContext context) throws IOException
- Throws:
IOException
-
createIndexCreator
public DictionaryBasedInvertedIndexCreator createIndexCreator(IndexCreationContext context, IndexConfig indexConfig) throws IOException
- Specified by:
createIndexCreatorin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>- Throws:
IOException
-
createReaderFactory
protected IndexReaderFactory<InvertedIndexReader> createReaderFactory()
- Specified by:
createReaderFactoryin classAbstractIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
getIndexReader
@Nullable public InvertedIndexReader getIndexReader(ColumnIndexContainer indexContainer)
- Specified by:
getIndexReaderin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
getFileExtensions
public List<String> getFileExtensions(@Nullable ColumnMetadata columnMetadata)
- Specified by:
getFileExtensionsin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
createIndexHandler
public IndexHandler createIndexHandler(SegmentDirectory segmentDirectory, Map<String,FieldIndexConfigs> configsByCol, @Nullable Schema schema, @Nullable TableConfig tableConfig)
- Specified by:
createIndexHandlerin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
handleIndexSpecificCleanup
protected void handleIndexSpecificCleanup(TableConfig tableConfig)
- Overrides:
handleIndexSpecificCleanupin classAbstractIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
createMutableIndex
@Nullable public MutableIndex createMutableIndex(MutableIndexContext context, IndexConfig config)
- Specified by:
createMutableIndexin interfaceIndexType<IndexConfig,InvertedIndexReader,DictionaryBasedInvertedIndexCreator>
-
-