Class BitSlicedRangeIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.BitSlicedRangeIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,CombinedInvertedIndexCreator,DictionaryBasedInvertedIndexCreator,InvertedIndexCreator,RawValueBasedInvertedIndexCreator
public class BitSlicedRangeIndexCreator extends Object implements CombinedInvertedIndexCreator
-
-
Field Summary
Fields Modifier and Type Field Description static intVERSION
-
Constructor Summary
Constructors Constructor Description BitSlicedRangeIndexCreator(File indexDir, FieldSpec fieldSpec, int cardinality)For dictionarized columnsBitSlicedRangeIndexCreator(File indexDir, FieldSpec fieldSpec, Comparable<?> minValue, Comparable<?> maxValue)For raw columns
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double value)voidadd(double[] values, int length)voidadd(float value)voidadd(float[] values, int length)voidadd(int value)voidadd(int[] values, int length)voidadd(long value)voidadd(long[] values, int length)voidclose()voidseal()
-
-
-
Field Detail
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BitSlicedRangeIndexCreator
public BitSlicedRangeIndexCreator(File indexDir, FieldSpec fieldSpec, int cardinality)
For dictionarized columns- Parameters:
indexDir- the directory for the indexfieldSpec- the specification of the fieldcardinality- the cardinality of the dictionary
-
BitSlicedRangeIndexCreator
public BitSlicedRangeIndexCreator(File indexDir, FieldSpec fieldSpec, Comparable<?> minValue, Comparable<?> maxValue)
For raw columns- Parameters:
indexDir- the directory for the indexfieldSpec- the specification of the fieldminValue- the minimum valuemaxValue- the maximum value
-
-
Method Detail
-
add
public void add(int value)
- Specified by:
addin interfaceDictionaryBasedInvertedIndexCreator- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(int[] values, int length)- Specified by:
addin interfaceDictionaryBasedInvertedIndexCreator- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(long value)
- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(long[] values, int length)- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(float value)
- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(float[] values, int length)- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(double value)
- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
add
public void add(double[] values, int length)- Specified by:
addin interfaceRawValueBasedInvertedIndexCreator
-
seal
public void seal() throws IOException- Specified by:
sealin interfaceInvertedIndexCreator- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-