private static class OrcFlowFileWriter.StructTreeWriter extends OrcFlowFileWriter.TreeWriter
| Modifier and Type | Field and Description |
|---|---|
private List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> |
fields |
bloomFilter, childrenWriters, createBloomFilter, id, indexStatistics, inspector, rowIndexPosition, stripeColStatistics| Constructor and Description |
|---|
StructTreeWriter(int columnId,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
OrcFlowFileWriter.StreamFactory writer,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
(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, recordPosition, writeBatch, writeRootBatchprivate final List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> fields
StructTreeWriter(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 writeCopyright © 2023 Apache NiFi Project. All rights reserved.