public class RecordReaderImpl extends RecordReaderImpl implements RecordReader
RecordReaderImpl.PositionProviderImpl, RecordReaderImpl.SargApplier
path, schema
Modifier | Constructor and Description |
---|---|
protected |
RecordReaderImpl(ReaderImpl fileReader,
Reader.Options options) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the resources associated with the given reader.
|
long |
getRowNumber()
Get the row number of the row that will be returned by the following
call to next().
|
boolean |
hasNext()
Does the reader have more rows available.
|
Object |
next(Object previous)
Read the next row.
|
boolean |
nextBatch(VectorizedRowBatch theirBatch)
Read the next row batch.
|
void |
seekToRow(long row)
Seek to a particular row number.
|
encodeTranslatedSargColumn, evaluatePredicate, getProgress, mapSargColumnsToOrcInternalColIdx, mapTranslatedSargColumns, pickRowGroups, readRowIndex, readRowIndex, readStripeFooter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgress
protected RecordReaderImpl(ReaderImpl fileReader, Reader.Options options) throws IOException
IOException
public long getRowNumber()
RecordReader
getRowNumber
in interface RecordReader
getRowNumber
in class RecordReaderImpl
public boolean hasNext() throws IOException
RecordReader
IOException
public void seekToRow(long row) throws IOException
RecordReader
seekToRow
in interface RecordReader
seekToRow
in class RecordReaderImpl
IOException
public Object next(Object previous) throws IOException
RecordReader
previous
- a row object that can be reused by the readerIOException
public boolean nextBatch(VectorizedRowBatch theirBatch) throws IOException
RecordReader
nextBatch
in interface RecordReader
nextBatch
in class RecordReaderImpl
theirBatch
- a row batch object to read intoIOException
public void close() throws IOException
RecordReader
close
in interface RecordReader
close
in class RecordReaderImpl
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.