public static class TreeReaderFactory.TimestampTreeReader extends TreeReaderFactory.TreeReader
| Modifier and Type | Field and Description |
|---|---|
protected long |
base_timestamp |
protected IntegerReader |
data |
protected IntegerReader |
nanos |
columnId, context, present, vectorColumnCount| Modifier | Constructor and Description |
|---|---|
protected |
TimestampTreeReader(int columnId,
InStream presentStream,
InStream dataStream,
InStream nanosStream,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.Context context,
boolean instantType) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getBaseTimestamp(String timeZoneId) |
void |
nextVector(ColumnVector previousVector,
boolean[] isNull,
int batchSize)
Populates the isNull vector array in the previousVector object based on
the present stream values.
|
void |
seek(PositionProvider index) |
void |
seek(PositionProvider[] index)
Seek to the given position.
|
countNonNulls, createIntegerReader, getColumnId, getPresent, nextBatchprotected IntegerReader data
protected IntegerReader nanos
protected long base_timestamp
protected TimestampTreeReader(int columnId,
InStream presentStream,
InStream dataStream,
InStream nanosStream,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.Context context,
boolean instantType)
throws IOException
IOExceptionprotected long getBaseTimestamp(String timeZoneId) throws IOException
IOExceptionpublic void seek(PositionProvider[] index) throws IOException
TreeReaderFactory.TreeReaderseek in class TreeReaderFactory.TreeReaderindex - the indexes loaded from the fileIOExceptionpublic void seek(PositionProvider index) throws IOException
seek in class TreeReaderFactory.TreeReaderIOExceptionpublic void nextVector(ColumnVector previousVector, boolean[] isNull, int batchSize) throws IOException
TreeReaderFactory.TreeReadernextVector in class TreeReaderFactory.TreeReaderpreviousVector - The columnVector object whose isNull value is populatedisNull - Whether the each value was null at a higher level. If
isNull is null, all values are non-null.batchSize - Size of the column vectorIOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.