Class MultiValueVarByteRawIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.fwd.MultiValueVarByteRawIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexCreator
public class MultiValueVarByteRawIndexCreator 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 MultiValueVarByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxRowLengthInBytes, int maxNumberOfElements)Create a var-byte raw index creator for the given columnMultiValueVarByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int writerVersion, int maxRowLengthInBytes, int maxNumberOfElements)Create a var-byte raw index creator for the given column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FieldSpec.DataTypegetValueType()booleanisDictionaryEncoded()booleanisSingleValue()voidputBytesMV(byte[][] values)voidputStringMV(String[] 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, putDictId, putDictIdMV, putDouble, putDoubleMV, putFloat, putFloatMV, putInt, putIntMV, putLong, putLongMV, putString
-
-
-
-
Constructor Detail
-
MultiValueVarByteRawIndexCreator
public MultiValueVarByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int maxRowLengthInBytes, int maxNumberOfElements) 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 valuesmaxRowLengthInBytes- the length in bytes of the largest rowmaxNumberOfElements- the maximum number of elements in a row- Throws:
IOException
-
MultiValueVarByteRawIndexCreator
public MultiValueVarByteRawIndexCreator(File baseIndexDir, ChunkCompressionType compressionType, String column, int totalDocs, FieldSpec.DataType valueType, int writerVersion, int maxRowLengthInBytes, int maxNumberOfElements) 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 valuesmaxRowLengthInBytes- the size in bytes of the largest row, the chunk size cannot be smaller than thismaxNumberOfElements- the maximum number of elements in a rowwriterVersion- 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
-
putStringMV
public void putStringMV(String[] values)
- Specified by:
putStringMVin interfaceForwardIndexCreator
-
putBytesMV
public void putBytesMV(byte[][] values)
- Specified by:
putBytesMVin interfaceForwardIndexCreator
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-