private static class OrcFlowFileWriter.TimestampTreeWriter extends OrcFlowFileWriter.TreeWriter
| Modifier and Type | Field and Description |
|---|---|
private long |
base_timestamp |
private boolean |
isDirectV2 |
private org.apache.hadoop.hive.ql.io.orc.IntegerWriter |
nanos |
private org.apache.hadoop.hive.ql.io.orc.IntegerWriter |
seconds |
bloomFilter, childrenWriters, createBloomFilter, id, indexStatistics, inspector, rowIndexPosition, stripeColStatistics| Constructor and Description |
|---|
TimestampTreeWriter(int columnId,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
OrcFlowFileWriter.StreamFactory writer,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
private static long |
formatNanos(int nanos) |
(package private) org.apache.hadoop.hive.ql.io.orc.OrcProto.ColumnEncoding |
getEncoding()
Get the encoding for this column.
|
(package private) void |
recordPosition(org.apache.hadoop.hive.ql.io.orc.PositionRecorder recorder)
Record the current position in each of this column's streams.
|
(package private) void |
write(Object obj)
Add a new value to the column.
|
(package private) void |
writeStripe(org.apache.hadoop.hive.ql.io.orc.OrcProto.StripeFooter.Builder builder,
int requiredIndexEntries)
Write the stripe out to the file.
|
addBloomFilterEntry, createIntegerWriter, createRowIndexEntry, estimateMemory, getChildrenWriters, getFileStatistics, getRowIndex, getRowIndexEntry, getStripeStatistics, isNewWriteFormat, writeBatch, writeRootBatchprivate final org.apache.hadoop.hive.ql.io.orc.IntegerWriter seconds
private final org.apache.hadoop.hive.ql.io.orc.IntegerWriter nanos
private final boolean isDirectV2
private final long base_timestamp
TimestampTreeWriter(int columnId,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
OrcFlowFileWriter.StreamFactory writer,
boolean nullable)
throws IOException
IOExceptionorg.apache.hadoop.hive.ql.io.orc.OrcProto.ColumnEncoding getEncoding()
OrcFlowFileWriter.TreeWritergetEncoding in class OrcFlowFileWriter.TreeWritervoid write(Object obj) throws IOException
OrcFlowFileWriter.TreeWriterwrite in class OrcFlowFileWriter.TreeWriterobj - The value to write to the columnIOException - if an error occurs during addvoid writeStripe(org.apache.hadoop.hive.ql.io.orc.OrcProto.StripeFooter.Builder builder,
int requiredIndexEntries)
throws IOException
OrcFlowFileWriter.TreeWriterwriteStripe in class OrcFlowFileWriter.TreeWriterbuilder - the stripe footer that contains the information about the
layout of the stripe. The TreeWriter is required to update
the footer with its information.requiredIndexEntries - the number of index entries that are
required. this is to check to make sure the
row index is well formed.IOException - if an error occurs during writeprivate static long formatNanos(int nanos)
void recordPosition(org.apache.hadoop.hive.ql.io.orc.PositionRecorder recorder)
throws IOException
OrcFlowFileWriter.TreeWriterrecordPosition in class OrcFlowFileWriter.TreeWriterrecorder - where should the locations be recordedIOException - if an error occurs during position recordingCopyright © 2023 Apache NiFi Project. All rights reserved.