Class CompactedPinotSegmentRecordReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.readers.CompactedPinotSegmentRecordReader
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,RecordReader
public class CompactedPinotSegmentRecordReader extends Object implements RecordReader
Compacted Pinot Segment Record Reader used for upsert compaction- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompactedPinotSegmentRecordReader(File indexDir, org.roaringbitmap.RoaringBitmap validDocIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()voidinit(File dataFile, Set<String> fieldsToRead, RecordReaderConfig recordReaderConfig)GenericRownext()GenericRownext(GenericRow reuse)voidrewind()
-
-
-
Constructor Detail
-
CompactedPinotSegmentRecordReader
public CompactedPinotSegmentRecordReader(File indexDir, org.roaringbitmap.RoaringBitmap validDocIds)
-
-
Method Detail
-
init
public void init(File dataFile, @Nullable Set<String> fieldsToRead, @Nullable RecordReaderConfig recordReaderConfig) throws IOException
- Specified by:
initin interfaceRecordReader- Throws:
IOException
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceRecordReader
-
next
public GenericRow next() throws IOException
- Specified by:
nextin interfaceRecordReader- Throws:
IOException
-
next
public GenericRow next(GenericRow reuse) throws IOException
- Specified by:
nextin interfaceRecordReader- Throws:
IOException
-
rewind
public void rewind() throws IOException- Specified by:
rewindin interfaceRecordReader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-