Class IndexLoadingConfig
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.loader.IndexLoadingConfig
-
public class IndexLoadingConfig extends Object
Table level index loading config.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREAD_MODE_KEY
-
Constructor Summary
Constructors Constructor Description IndexLoadingConfig()IndexLoadingConfig(InstanceDataManagerConfig instanceDataManagerConfig, TableConfig tableConfig)IndexLoadingConfig(InstanceDataManagerConfig instanceDataManagerConfig, TableConfig tableConfig, Schema schema)NOTE: This step might modify the passed in table config and schema.
-
Method Summary
-
-
-
Field Detail
-
READ_MODE_KEY
public static final String READ_MODE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexLoadingConfig
public IndexLoadingConfig(InstanceDataManagerConfig instanceDataManagerConfig, TableConfig tableConfig, @Nullable Schema schema)
NOTE: This step might modify the passed in table config and schema.
-
IndexLoadingConfig
public IndexLoadingConfig(InstanceDataManagerConfig instanceDataManagerConfig, TableConfig tableConfig)
-
IndexLoadingConfig
public IndexLoadingConfig()
-
-
Method Detail
-
getInstanceDataManagerConfig
public InstanceDataManagerConfig getInstanceDataManagerConfig()
-
getReadMode
public ReadMode getReadMode()
-
setReadMode
public void setReadMode(ReadMode readMode)
For tests only.
-
setSortedColumn
public void setSortedColumn(String sortedColumn)
For tests only.
-
getRangeIndexVersion
public int getRangeIndexVersion()
-
getFSTIndexType
public FSTType getFSTIndexType()
-
getTextIndexColumns
public Set<String> getTextIndexColumns()
Used in two places: (1) InPhysicalColumnIndexContainerto create the index loading info for immutable segments (2) In LLRealtimeSegmentDataManager to create the RealtimeSegmentConfig. RealtimeSegmentConfig is used to specify the text index column info for newly to-be-created Mutable Segments- Returns:
- a set containing names of text index columns
-
getJsonIndexConfigs
public Map<String,JsonIndexConfig> getJsonIndexConfigs()
-
getH3IndexConfigs
public Map<String,H3IndexConfig> getH3IndexConfigs()
-
setColumnProperties
public void setColumnProperties(Map<String,Map<String,String>> columnProperties)
-
setInvertedIndexColumns
public void setInvertedIndexColumns(Set<String> invertedIndexColumns)
For tests only.
-
setNoDictionaryColumns
public void setNoDictionaryColumns(Set<String> noDictionaryColumns)
For tests only. Used by segmentPreProcessorTest to set raw columns.
-
setCompressionConfigs
public void setCompressionConfigs(Map<String,ChunkCompressionType> compressionConfigs)
For tests only. Used by segmentPreProcessorTest to set compression configs.
-
setRangeIndexColumns
public void setRangeIndexColumns(Set<String> rangeIndexColumns)
For tests only.
-
setTextIndexColumns
public void setTextIndexColumns(Set<String> textIndexColumns)
Used directly from text search unit test code since the test code doesn't really have a table config and is directly testing the query execution code of text search using data from generated segments and then loading those segments.
-
setFSTIndexType
public void setFSTIndexType(FSTType fstType)
-
setH3IndexConfigs
public void setH3IndexConfigs(Map<String,H3IndexConfig> h3IndexConfigs)
-
setBloomFilterConfigs
public void setBloomFilterConfigs(Map<String,BloomFilterConfig> bloomFilterConfigs)
-
setOnHeapDictionaryColumns
public void setOnHeapDictionaryColumns(Set<String> onHeapDictionaryColumns)
-
setForwardIndexDisabledColumns
public void setForwardIndexDisabledColumns(Set<String> forwardIndexDisabledColumns)
For tests only.
-
getCompressionConfigs
public Map<String,ChunkCompressionType> getCompressionConfigs()
Populates a map containing column name as key and compression type as value. This map will only contain the compressionType overrides, and it does not correspond to the default value of compressionType (derived using SegmentColumnarIndexCreator.getColumnCompressionType()) used for a column. Note that only RAW forward index columns will be populated in this map.- Returns:
- a map containing column name as key and compressionType as value.
-
getBloomFilterConfigs
public Map<String,BloomFilterConfig> getBloomFilterConfigs()
-
isEnableDynamicStarTreeCreation
public boolean isEnableDynamicStarTreeCreation()
-
getStarTreeIndexConfigs
@Nullable public List<StarTreeIndexConfig> getStarTreeIndexConfigs()
-
isEnableDefaultStarTree
public boolean isEnableDefaultStarTree()
-
getSegmentVersion
@Nullable public SegmentVersion getSegmentVersion()
-
setSegmentVersion
public void setSegmentVersion(SegmentVersion segmentVersion)
For tests only.
-
isEnableSplitCommit
public boolean isEnableSplitCommit()
-
isEnableSplitCommitEndWithMetadata
public boolean isEnableSplitCommitEndWithMetadata()
-
isRealtimeOffHeapAllocation
public boolean isRealtimeOffHeapAllocation()
-
isDirectRealtimeOffHeapAllocation
public boolean isDirectRealtimeOffHeapAllocation()
-
getColumnMinMaxValueGeneratorMode
public ColumnMinMaxValueGeneratorMode getColumnMinMaxValueGeneratorMode()
-
getSegmentStoreURI
public String getSegmentStoreURI()
-
setColumnMinMaxValueGeneratorMode
public void setColumnMinMaxValueGeneratorMode(ColumnMinMaxValueGeneratorMode columnMinMaxValueGeneratorMode)
For tests only.
-
getRealtimeAvgMultiValueCount
public int getRealtimeAvgMultiValueCount()
-
getTableConfig
public TableConfig getTableConfig()
-
getSchema
@Nullable public Schema getSchema()
-
setTableConfig
public void setTableConfig(TableConfig tableConfig)
-
getSegmentDirectoryLoader
public String getSegmentDirectoryLoader()
-
getSegmentDirectoryConfigs
public PinotConfiguration getSegmentDirectoryConfigs()
-
getInstanceId
public String getInstanceId()
-
setTableDataDir
public void setTableDataDir(String tableDataDir)
-
getTableDataDir
public String getTableDataDir()
-
setSegmentTier
public void setSegmentTier(String segmentTier)
-
getSegmentTier
public String getSegmentTier()
-
setInstanceTierConfigs
public void setInstanceTierConfigs(Map<String,Map<String,String>> tierConfigs)
-
-