Class IndexLoadingConfig


  • public class IndexLoadingConfig
    extends Object
    Table level index loading config.
    • 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()
    • Method Detail

      • getReadMode

        public ReadMode getReadMode()
      • setReadMode

        public void setReadMode​(ReadMode readMode)
        For tests only.
      • getSortedColumns

        public List<String> getSortedColumns()
      • setSortedColumn

        public void setSortedColumn​(String sortedColumn)
        For tests only.
      • getInvertedIndexColumns

        public Set<String> getInvertedIndexColumns()
      • getRangeIndexColumns

        public Set<String> getRangeIndexColumns()
      • getRangeIndexVersion

        public int getRangeIndexVersion()
      • getFSTIndexType

        public FSTType getFSTIndexType()
      • getTextIndexColumns

        public Set<String> getTextIndexColumns()
        Used in two places: (1) In PhysicalColumnIndexContainer to 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
      • getFSTIndexColumns

        public Set<String> getFSTIndexColumns()
      • 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.
      • setFSTIndexColumns

        public void setFSTIndexColumns​(Set<String> fstIndexColumns)
      • setFSTIndexType

        public void setFSTIndexType​(FSTType fstType)
      • setJsonIndexColumns

        public void setJsonIndexColumns​(Set<String> jsonIndexColumns)
      • setOnHeapDictionaryColumns

        public void setOnHeapDictionaryColumns​(Set<String> onHeapDictionaryColumns)
      • setForwardIndexDisabledColumns

        public void setForwardIndexDisabledColumns​(Set<String> forwardIndexDisabledColumns)
        For tests only.
      • getNoDictionaryColumns

        public Set<String> getNoDictionaryColumns()
      • 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.
      • getNoDictionaryConfig

        public Map<String,​String> getNoDictionaryConfig()
      • getVarLengthDictionaryColumns

        public Set<String> getVarLengthDictionaryColumns()
      • getOnHeapDictionaryColumns

        public Set<String> getOnHeapDictionaryColumns()
      • getForwardIndexDisabledColumns

        public Set<String> getForwardIndexDisabledColumns()
      • isEnableDynamicStarTreeCreation

        public boolean isEnableDynamicStarTreeCreation()
      • 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()
      • getSegmentStoreURI

        public String getSegmentStoreURI()
      • setColumnMinMaxValueGeneratorMode

        public void setColumnMinMaxValueGeneratorMode​(ColumnMinMaxValueGeneratorMode columnMinMaxValueGeneratorMode)
        For tests only.
      • getRealtimeAvgMultiValueCount

        public int getRealtimeAvgMultiValueCount()
      • getSchema

        @Nullable
        public Schema getSchema()
      • setTableConfig

        public void setTableConfig​(TableConfig tableConfig)
      • getSegmentDirectoryLoader

        public String getSegmentDirectoryLoader()
      • getInstanceId

        public String getInstanceId()
      • setTableDataDir

        public void setTableDataDir​(String tableDataDir)
      • getTableDataDir

        public String getTableDataDir()
      • setSegmentTier

        public void setSegmentTier​(String segmentTier)
      • getSegmentTier

        public String getSegmentTier()