Class TextIndexType
- java.lang.Object
-
- org.apache.pinot.segment.spi.index.AbstractIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
- org.apache.pinot.segment.local.segment.index.text.TextIndexType
-
- All Implemented Interfaces:
ConfigurableFromIndexLoadingConfig<TextIndexConfig>,IndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
public class TextIndexType extends AbstractIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator> implements ConfigurableFromIndexLoadingConfig<TextIndexConfig>
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEX_DISPLAY_NAMEprotected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextIndexType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnConfigDeserializer<TextIndexConfig>createDeserializer()TextIndexCreatorcreateIndexCreator(IndexCreationContext context, TextIndexConfig indexConfig)IndexHandlercreateIndexHandler(SegmentDirectory segmentDirectory, Map<String,FieldIndexConfigs> configsByCol, Schema schema, TableConfig tableConfig)MutableIndexcreateMutableIndex(MutableIndexContext context, TextIndexConfig config)protected IndexReaderFactory<TextIndexReader>createReaderFactory()Map<String,TextIndexConfig>fromIndexLoadingConfig(IndexLoadingConfig indexLoadingConfig)Returns a map that can be used to get the index config.TextIndexConfiggetDefaultConfig()StringgetFileExtension(ColumnMetadata columnMetadata)Class<TextIndexConfig>getIndexConfigClass()StringgetPrettyName()-
Methods inherited from class org.apache.pinot.segment.spi.index.AbstractIndexType
convertToNewFormat, equals, getConfig, getId, getReaderFactory, handleIndexSpecificCleanup, 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
getIndexReader
-
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
INDEX_DISPLAY_NAME
public static final String INDEX_DISPLAY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndexConfigClass
public Class<TextIndexConfig> getIndexConfigClass()
- Specified by:
getIndexConfigClassin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
fromIndexLoadingConfig
public Map<String,TextIndexConfig> 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<TextIndexConfig>- Returns:
- a map whose keys are the column names and the values are the index configuration for that column.
-
getDefaultConfig
public TextIndexConfig getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
getPrettyName
public String getPrettyName()
- Specified by:
getPrettyNamein interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
createDeserializer
public ColumnConfigDeserializer<TextIndexConfig> createDeserializer()
- Specified by:
createDeserializerin classAbstractIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
createIndexCreator
public TextIndexCreator createIndexCreator(IndexCreationContext context, TextIndexConfig indexConfig) throws IOException
- Specified by:
createIndexCreatorin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>- Throws:
IOException
-
createReaderFactory
protected IndexReaderFactory<TextIndexReader> createReaderFactory()
- Specified by:
createReaderFactoryin classAbstractIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
createIndexHandler
public IndexHandler createIndexHandler(SegmentDirectory segmentDirectory, Map<String,FieldIndexConfigs> configsByCol, @Nullable Schema schema, @Nullable TableConfig tableConfig)
- Specified by:
createIndexHandlerin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
getFileExtension
public String getFileExtension(ColumnMetadata columnMetadata)
- Specified by:
getFileExtensionin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
createMutableIndex
@Nullable public MutableIndex createMutableIndex(MutableIndexContext context, TextIndexConfig config)
- Specified by:
createMutableIndexin interfaceIndexType<TextIndexConfig,TextIndexReader,TextIndexCreator>
-
-