Class SegmentDictionaryCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.SegmentDictionaryCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SegmentDictionaryCreator extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description SegmentDictionaryCreator(FieldSpec fieldSpec, File indexDir)SegmentDictionaryCreator(FieldSpec fieldSpec, File indexDir, boolean useVarLengthDictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(Object sortedValues)voidclose()intgetNumBytesPerEntry()int[]indexOfMV(Object value)intindexOfSV(Object value)voidpostIndexingCleanup()Cleans up the no longer needed objects after all the indexing is done to free up some memory.
-
-
-
Method Detail
-
build
public void build(Object sortedValues) throws IOException
- Throws:
IOException
-
getNumBytesPerEntry
public int getNumBytesPerEntry()
-
indexOfSV
public int indexOfSV(Object value)
-
indexOfMV
public int[] indexOfMV(Object value)
-
postIndexingCleanup
public void postIndexingCleanup()
Cleans up the no longer needed objects after all the indexing is done to free up some memory.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-