Class SingleValueFixedByteRawIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.fwd.SingleValueFixedByteRawIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexCreator,IndexCreator
public class SingleValueFixedByteRawIndexCreator extends Object implements ForwardIndexCreator
Raw (non-dictionary-encoded) forward index creator for single-value column of fixed length data type (INT, LONG, FLOAT, DOUBLE).
-
-
Constructor Summary
Constructors Constructor Description SingleValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType)Constructor for the classSingleValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int writerVersion)Constructor for the class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FieldSpec.DataTypegetValueType()booleanisDictionaryEncoded()booleanisSingleValue()voidputDouble(double value)voidputFloat(float value)voidputInt(int value)voidputLong(long value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.creator.ForwardIndexCreator
add, add, putBigDecimal, putBytes, putBytesMV, putDictId, putDictIdMV, putDoubleMV, putFloatMV, putIntMV, putLongMV, putString, putStringMV, seal
-
-
-
-
Constructor Detail
-
SingleValueFixedByteRawIndexCreator
public SingleValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType) throws IOException
Constructor for the class- Parameters:
baseIndexDir- Index directorycompressionType- Type of compression to usecolumn- Name of column to indextotalDocs- Total number of documents to indexvalueType- Type of the values- Throws:
IOException
-
SingleValueFixedByteRawIndexCreator
public SingleValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int writerVersion) throws IOException
Constructor for the class- Parameters:
baseIndexDir- Index directorycompressionType- Type of compression to usecolumn- Name of column to indextotalDocs- Total number of documents to indexvalueType- Type of the valueswriterVersion- writer format version- Throws:
IOException
-
-
Method Detail
-
isDictionaryEncoded
public boolean isDictionaryEncoded()
- Specified by:
isDictionaryEncodedin interfaceForwardIndexCreator
-
isSingleValue
public boolean isSingleValue()
- Specified by:
isSingleValuein interfaceForwardIndexCreator
-
getValueType
public FieldSpec.DataType getValueType()
- Specified by:
getValueTypein interfaceForwardIndexCreator
-
putInt
public void putInt(int value)
- Specified by:
putIntin interfaceForwardIndexCreator
-
putLong
public void putLong(long value)
- Specified by:
putLongin interfaceForwardIndexCreator
-
putFloat
public void putFloat(float value)
- Specified by:
putFloatin interfaceForwardIndexCreator
-
putDouble
public void putDouble(double value)
- Specified by:
putDoublein interfaceForwardIndexCreator
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-