Class SegmentDictionaryCreator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, IndexCreator

    public class SegmentDictionaryCreator
    extends Object
    implements IndexCreator
    The IndexCreator for dictionaries. Although this class implements IndexCreator, it is not intended to be used as a normal IndexCreator. Specifically, neither add(Object, int) or add(Object[], int[]) should be called on this object. In order to make sure these methods are not being called, they throw exceptions in this class. This requirement is a corollary from the fact that the IndexCreator contract assumes the dictionary id can be calculated before calling add methods.
    • Constructor Detail

      • SegmentDictionaryCreator

        public SegmentDictionaryCreator​(FieldSpec fieldSpec,
                                        File indexDir,
                                        boolean useVarLengthDictionary)
      • SegmentDictionaryCreator

        public SegmentDictionaryCreator​(FieldSpec fieldSpec,
                                        File indexDir)