public class LazyIntTreeReader extends LazyTreeReader
| Modifier and Type | Field and Description |
|---|---|
protected LazyTreeReader |
reader |
columnId, previousPresentRow, previousRow, previousRowIndexEntry, rowBaseInStripe, rowIndexStride, valuePresent| Constructor and Description |
|---|
LazyIntTreeReader(int columnId,
long rowIndexStride) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
createWritableFromLatest(Object previous)
When a client asks for a writable object after materializing a
primitive, create a writable from previous value read from stream.
|
Object |
get(long currentRow,
Object previous)
Returns the value corresponding to currentRow, suitable for calling from outside
|
boolean |
getBoolean(long currentRow) |
double |
getDouble(long currentRow) |
float |
getFloat(long currentRow) |
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 |
getInt(long currentRow) |
long |
getLong(long currentRow) |
short |
getShort(long currentRow) |
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 |
nextBoolean(boolean readStream) |
double |
nextDouble(boolean readStream) |
float |
nextFloat(boolean readStream) |
int |
nextInt(boolean readStream) |
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.
|
long |
nextLong(boolean readStream) |
short |
nextShort(boolean readStream) |
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, seekToPresentRow, seekToRowprotected LazyTreeReader reader
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 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 boolean getBoolean(long currentRow)
throws IOException
getBoolean in class LazyTreeReaderIOExceptionpublic long getLong(long currentRow)
throws IOException
getLong in class LazyTreeReaderIOExceptionpublic int getInt(long currentRow)
throws IOException
getInt in class LazyTreeReaderIOExceptionpublic short getShort(long currentRow)
throws IOException
getShort in class LazyTreeReaderIOExceptionpublic double getDouble(long currentRow)
throws IOException
getDouble in class LazyTreeReaderIOExceptionpublic float getFloat(long currentRow)
throws IOException
getFloat 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 Object createWritableFromLatest(Object previous) throws IOException
LazyTreeReadercreateWritableFromLatest in class LazyTreeReaderIOExceptionpublic boolean nextBoolean(boolean readStream)
throws IOException
nextBoolean in class LazyTreeReaderIOExceptionpublic short nextShort(boolean readStream)
throws IOException
nextShort in class LazyTreeReaderIOExceptionpublic int nextInt(boolean readStream)
throws IOException
nextInt in class LazyTreeReaderIOExceptionpublic long nextLong(boolean readStream)
throws IOException
nextLong in class LazyTreeReaderIOExceptionpublic float nextFloat(boolean readStream)
throws IOException
nextFloat in class LazyTreeReaderIOExceptionpublic double nextDouble(boolean readStream)
throws IOException
nextDouble in class LazyTreeReaderIOExceptionpublic void close()
throws IOException
close in class LazyTreeReaderIOExceptionCopyright © 2013–2021. All rights reserved.