private static class OrcFlowFileWriter.DoubleTreeWriter extends OrcFlowFileWriter.TreeWriter
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hive.ql.io.orc.PositionedOutputStream |
stream |
private org.apache.hadoop.hive.ql.io.orc.SerializationUtils |
utils |
bloomFilter, childrenWriters, createBloomFilter, id, indexStatistics, inspector, rowIndexPosition, stripeColStatistics| Constructor and Description |
|---|
DoubleTreeWriter(int columnId,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
OrcFlowFileWriter.StreamFactory writer,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
(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, getEncoding, getFileStatistics, getRowIndex, getRowIndexEntry, getStripeStatistics, isNewWriteFormat, writeBatch, writeRootBatchprivate final org.apache.hadoop.hive.ql.io.orc.PositionedOutputStream stream
private final org.apache.hadoop.hive.ql.io.orc.SerializationUtils utils
DoubleTreeWriter(int columnId,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
OrcFlowFileWriter.StreamFactory writer,
boolean nullable)
throws IOException
IOExceptionvoid 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 writevoid 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.