Class MultiValueFixedByteRawIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.fwd.MultiValueFixedByteRawIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexCreator
public class MultiValueFixedByteRawIndexCreator extends Object implements ForwardIndexCreator
Forward index creator for raw (non-dictionary-encoded) single-value column of variable length data type (STRING, BYTES).
-
-
Constructor Summary
Constructors Constructor Description MultiValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxNumberOfMultiValueElements)Create a var-byte raw index creator for the given columnMultiValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxNumberOfMultiValueElements, boolean deriveNumDocsPerChunk, int writerVersion)Create a var-byte raw index creator for the given column
-
Method Summary
Modifier and Type Method Description voidclose()FieldSpec.DataTypegetValueType()booleanisDictionaryEncoded()booleanisSingleValue()voidputDoubleMV(double[] values)voidputFloatMV(float[] values)voidputIntMV(int[] values)voidputLongMV(long[] values)-
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
putBigDecimal, putBytes, putBytesMV, putDictId, putDictIdMV, putDouble, putFloat, putInt, putLong, putString, putStringMV
-
-
-
-
Constructor Detail
-
MultiValueFixedByteRawIndexCreator
public MultiValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxNumberOfMultiValueElements) throws IOException
Create a var-byte raw index creator for the given column- 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
-
MultiValueFixedByteRawIndexCreator
public MultiValueFixedByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxNumberOfMultiValueElements, boolean deriveNumDocsPerChunk, int writerVersion) throws IOException
Create a var-byte raw index creator for the given column- Parameters:
baseIndexDir- Index directorycompressionType- Type of compression to usecolumn- Name of column to indextotalDocs- Total number of documents to indexvalueType- Type of the valuesderiveNumDocsPerChunk- true if writer should auto-derive the number of rows per chunkwriterVersion- 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
-
putIntMV
public void putIntMV(int[] values)
- Specified by:
putIntMVin interfaceForwardIndexCreator
-
putLongMV
public void putLongMV(long[] values)
- Specified by:
putLongMVin interfaceForwardIndexCreator
-
putFloatMV
public void putFloatMV(float[] values)
- Specified by:
putFloatMVin interfaceForwardIndexCreator
-
putDoubleMV
public void putDoubleMV(double[] values)
- Specified by:
putDoubleMVin interfaceForwardIndexCreator
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-