public class LazyUnionTreeReader extends LazyTreeReader
columnId, previousPresentRow, previousRow, previousRowIndexEntry, rowBaseInStripe, rowIndexStride, valuePresent| Constructor and Description |
|---|
LazyUnionTreeReader(int columnId,
long rowIndexStride,
LazyTreeReader[] fields) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
loadIndeces(List<OrcProto.RowIndexEntry> rowIndexEntries,
int startIndex)
Read any indeces that will be needed and return a startIndex after the values that have been
read.
|
Object |
next(Object previous)
Should only be called from within the tree reader once it's been checked that the next
object isn't null
|
byte |
nextTag() |
void |
seek(int index) |
protected void |
seek(int rowIndexEntry,
boolean backwards)
Adjust all streams to the beginning of the row index entry specified, backwards means that
a previous value is being read and forces the index entry to be restarted, otherwise, has
no effect if we're already in the current index entry
|
void |
skipRows(long numNonNullValues)
Should only be called from within the tree reader once numNonNulls has been set correctly
|
void |
startStripe(Map<StreamName,InStream> streams,
List<OrcProto.ColumnEncoding> encodings,
OrcProto.RowIndex[] indexes,
long rowBaseInStripe) |
computeRowIndexEntry, countNonNulls, createWritableFromLatest, get, getBoolean, getDouble, getFloat, getInComplexType, getInt, getLong, getShort, nextBoolean, nextDouble, nextFloat, nextInt, nextIsNull, nextIsNullInComplexType, nextLong, nextShort, seekToPresentRow, seekToRow, skipRowsInComplexTypepublic LazyUnionTreeReader(int columnId,
long rowIndexStride,
LazyTreeReader[] fields)
public Object next(Object previous) throws IOException
LazyTreeReadernext in class LazyTreeReaderIOExceptionprotected void seek(int rowIndexEntry,
boolean backwards)
throws IOException
LazyTreeReaderseek in class LazyTreeReaderIOExceptionpublic void startStripe(Map<StreamName,InStream> streams, List<OrcProto.ColumnEncoding> encodings, OrcProto.RowIndex[] indexes, long rowBaseInStripe) throws IOException
startStripe in class LazyTreeReaderIOExceptionpublic void seek(int index)
throws IOException
seek in class LazyTreeReaderIOExceptionpublic int loadIndeces(List<OrcProto.RowIndexEntry> rowIndexEntries, int startIndex)
LazyTreeReaderloadIndeces in class LazyTreeReaderpublic byte nextTag()
throws IOException
IOExceptionpublic void skipRows(long numNonNullValues)
throws IOException
LazyTreeReaderskipRows in class LazyTreeReaderIOExceptionpublic void close()
throws IOException
close in class LazyTreeReaderIOExceptionCopyright © 2013–2021. All rights reserved.