public class LazyStringTreeReader extends LazyTreeReader
columnId, previousPresentRow, previousRow, previousRowIndexEntry, rowBaseInStripe, rowIndexStride, valuePresent| Constructor and Description |
|---|
LazyStringTreeReader(int columnId,
long rowIndexStride) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
get(long currentRow,
Object previous)
Returns the value corresponding to currentRow, suitable for calling from outside
|
Object |
getInComplexType(Object previous,
long row)
Should be called only from containers (lists, maps, structs, unions) since for these tree
readers the number of rows does not correspond to the number of values (e.g.
|
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
|
boolean |
nextIsNull(long currentRow)
Returns whether or not the value corresponding to currentRow is null, suitable for calling
from outside
|
boolean |
nextIsNullInComplexType()
Should be called only from containers (lists, maps, structs, unions) since for these tree
readers the number of rows does not correspond to the number of values (e.g.
|
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 |
skipRowsInComplexType(long numRows)
Should be called only from containers (lists, maps, structs, unions) since for these tree
readers the number of rows does not correspond to the number of values (e.g.
|
void |
startStripe(Map<StreamName,InStream> streams,
List<OrcProto.ColumnEncoding> encodings,
OrcProto.RowIndex[] indexes,
long rowBaseInStripe) |
computeRowIndexEntry, countNonNulls, createWritableFromLatest, getBoolean, getDouble, getFloat, getInt, getLong, getShort, nextBoolean, nextDouble, nextFloat, nextInt, nextLong, nextShort, seekToPresentRow, seekToRowpublic LazyStringTreeReader(int columnId,
long rowIndexStride)
public 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 LazyTreeReaderprotected void seek(int rowIndexEntry,
boolean backwards)
throws IOException
LazyTreeReaderseek in class LazyTreeReaderIOExceptionpublic Object next(Object previous) throws IOException
LazyTreeReadernext in class LazyTreeReaderIOExceptionpublic void skipRowsInComplexType(long numRows)
throws IOException
LazyTreeReaderskipRowsInComplexType in class LazyTreeReaderIOExceptionpublic void skipRows(long numNonNullValues)
throws IOException
LazyTreeReaderskipRows in class LazyTreeReaderIOExceptionpublic boolean nextIsNull(long currentRow)
throws IOException
LazyTreeReadernextIsNull in class LazyTreeReaderIOExceptionpublic boolean nextIsNullInComplexType()
throws IOException
LazyTreeReadernextIsNullInComplexType in class LazyTreeReaderIOExceptionpublic Object getInComplexType(Object previous, long row) throws IOException
LazyTreeReadergetInComplexType in class LazyTreeReaderIOExceptionpublic Object get(long currentRow, Object previous) throws IOException
LazyTreeReaderget in class LazyTreeReaderIOExceptionpublic void close()
throws IOException
close in class LazyTreeReaderIOExceptionCopyright © 2013–2021. All rights reserved.