Class ConstantSortedIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.constant.ConstantSortedIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ForwardIndexReader<ForwardIndexReaderContext>,InvertedIndexReader<Pairs.IntPair>,SortedIndexReader<ForwardIndexReaderContext>
public final class ConstantSortedIndexReader extends Object implements SortedIndexReader<ForwardIndexReaderContext>
Sorted index reader for single-value column with constant values.
-
-
Constructor Summary
Constructors Constructor Description ConstantSortedIndexReader(int numDocs)
-
Method Summary
Modifier and Type Method Description voidclose()intgetDictId(int docId, ForwardIndexReaderContext context)Pairs.IntPairgetDocIds(int dictId)voidreadDictIds(int[] docIds, int length, int[] dictIdBuffer, ForwardIndexReaderContext context)-
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, getBigDecimal, getBytes, getBytesMV, getBytesMV, getCompressionType, getDictIdMV, getDictIdMV, getDouble, getDoubleMV, getDoubleMV, getFloat, getFloatMV, getFloatMV, getInt, getIntMV, getIntMV, getLengthOfLongestEntry, getLong, getLongMV, getLongMV, getNumValuesMV, getString, getStringMV, getStringMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesMV, readValuesSV, readValuesSV, readValuesSV, readValuesSV, readValuesSV
-
Methods inherited from interface org.apache.pinot.segment.spi.index.reader.SortedIndexReader
getStoredType, isDictionaryEncoded, isSingleValue
-
-
-
-
Method Detail
-
getDictId
public int getDictId(int docId, ForwardIndexReaderContext context)- Specified by:
getDictIdin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
readDictIds
public void readDictIds(int[] docIds, int length, int[] dictIdBuffer, ForwardIndexReaderContext context)- Specified by:
readDictIdsin interfaceForwardIndexReader<ForwardIndexReaderContext>
-
getDocIds
public Pairs.IntPair getDocIds(int dictId)
- Specified by:
getDocIdsin interfaceInvertedIndexReader<Pairs.IntPair>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-