Class InvertedIndexAndDictionaryBasedForwardIndexCreator

  • All Implemented Interfaces:
    AutoCloseable

    public class InvertedIndexAndDictionaryBasedForwardIndexCreator
    extends Object
    implements AutoCloseable
    Helper classed used by the SegmentPreProcessor to generate the forward index from inverted index and dictionary when the forward index is enabled for columns where it was previously disabled. This is also invoked by the IndexHandler code in scenarios where the forward index needs to be temporarily created to generate other indexes for the given column. In such cases the forward index will be cleaned up after the IndexHandler code completes. For multi-value columns the following invariants cannot be maintained: - Ordering of elements within a given multi-value row. This will always be a limitation. TODO: Currently for multi-value columns generating the forward index can lead to a data loss as frequency information is not available for repeats within a given row. This needs to be addressed by tracking the frequency data as part of an on-disk structure when forward index is disabled for a column. TODO (index-spi): Rename this class, as it is not an implementation of IndexCreator.