Class VarByteSVMutableForwardIndex
- java.lang.Object
-
- org.apache.pinot.segment.local.realtime.impl.forward.VarByteSVMutableForwardIndex
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,MutableForwardIndex,MutableIndex,ForwardIndexReader<ForwardIndexReaderContext>
public class VarByteSVMutableForwardIndex extends Object implements MutableForwardIndex
Single-value forward index reader-writer for variable length values (STRING and BYTES).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pinot.segment.spi.index.reader.ForwardIndexReader
ForwardIndexReader.ByteRange
-
-
Constructor Summary
Constructors Constructor Description VarByteSVMutableForwardIndex(FieldSpec.DataType storedType, PinotDataBufferMemoryManager memoryManager, String allocationContext, int estimatedMaxNumberOfValues, int estimatedAverageStringLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()BigDecimalgetBigDecimal(int docId)byte[]getBytes(int docId)intgetLengthOfLongestElement()intgetLengthOfShortestElement()FieldSpec.DataTypegetStoredType()StringgetString(int docId)booleanisDictionaryEncoded()booleanisSingleValue()voidsetBigDecimal(int docId, BigDecimal value)voidsetBytes(int docId, byte[] value)voidsetString(int docId, String 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.reader.ForwardIndexReader
createContext, getCompressionType, getDictIdCompressionType, getDocLength, getLengthOfLongestEntry, getRawDataStartOffset, isBufferByteRangeInfoSupported, isDocLengthInBits, isFixedOffsetMappingType, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV, readValuesSV, readValuesSV, readValuesSV, readValuesSV, recordDocIdByteRanges
-
Methods inherited from interface org.apache.pinot.segment.spi.index.mutable.MutableForwardIndex
add, add, getBigDecimal, getBytes, getBytesMV, getBytesMV, getBytesMV, getBytesMV, getDictId, getDictId, getDictIdMV, getDictIdMV, getDictIdMV, getDictIdMV, getDouble, getDouble, getDoubleMV, getDoubleMV, getDoubleMV, getDoubleMV, getFloat, getFloat, getFloatMV, getFloatMV, getFloatMV, getFloatMV, getInt, getInt, getIntMV, getIntMV, getIntMV, getIntMV, getLong, getLong, getLongMV, getLongMV, getLongMV, getLongMV, getNumValuesMV, getNumValuesMV, getString, getStringMV, getStringMV, getStringMV, getStringMV, readDictIds, readDictIds, setBytesMV, setDictId, setDictIdMV, setDouble, setDoubleMV, setFloat, setFloatMV, setInt, setIntMV, setLong, setLongMV, setStringMV
-
-
-
-
Constructor Detail
-
VarByteSVMutableForwardIndex
public VarByteSVMutableForwardIndex(FieldSpec.DataType storedType, PinotDataBufferMemoryManager memoryManager, String allocationContext, int estimatedMaxNumberOfValues, int estimatedAverageStringLength)
-
-
Method Detail
-
isDictionaryEncoded
public boolean isDictionaryEncoded()
- Specified by:
isDictionaryEncodedin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
isSingleValue
public boolean isSingleValue()
- Specified by:
isSingleValuein interfaceForwardIndexReader<ForwardIndexReaderContext>
-
getStoredType
public FieldSpec.DataType getStoredType()
- Specified by:
getStoredTypein interfaceForwardIndexReader<ForwardIndexReaderContext>
-
getLengthOfShortestElement
public int getLengthOfShortestElement()
- Specified by:
getLengthOfShortestElementin interfaceMutableForwardIndex
-
getLengthOfLongestElement
public int getLengthOfLongestElement()
- Specified by:
getLengthOfLongestElementin interfaceMutableForwardIndex
-
getBigDecimal
public BigDecimal getBigDecimal(int docId)
- Specified by:
getBigDecimalin interfaceMutableForwardIndex
-
getString
public String getString(int docId)
- Specified by:
getStringin interfaceMutableForwardIndex
-
getBytes
public byte[] getBytes(int docId)
- Specified by:
getBytesin interfaceMutableForwardIndex
-
setBigDecimal
public void setBigDecimal(int docId, BigDecimal value)- Specified by:
setBigDecimalin interfaceMutableForwardIndex
-
setString
public void setString(int docId, String value)- Specified by:
setStringin interfaceMutableForwardIndex
-
setBytes
public void setBytes(int docId, byte[] value)- Specified by:
setBytesin interfaceMutableForwardIndex
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-