public class Decimal64TreeWriter extends TreeWriterBase
TreeWriter.FactorybloomFilter, bloomFilterEntry, bloomFilterUtf8, createBloomFilter, fileStatistics, id, indexStatistics, isPresent, rowIndexPosition, stripeColStatistics| Constructor and Description |
|---|
Decimal64TreeWriter(int columnId,
TypeDescription schema,
WriterContext writer,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
long |
estimateMemory()
Estimate how much memory the writer is consuming excluding the streams.
|
void |
flushStreams()
Flush the TreeWriter stream
|
long |
getRawDataSize()
Estimate the memory used if the file was read into Hive's Writable
types.
|
void |
writeBatch(ColumnVector vector,
int offset,
int length)
Write the values from the given vector from offset for length elements.
|
void |
writeStripe(OrcProto.StripeFooter.Builder builder,
OrcProto.StripeStatistics.Builder stats,
int requiredIndexEntries)
Write the stripe out to the file.
|
createRowIndexEntry, getRowIndex, getRowIndexEntry, getStripeStatistics, updateFileStatistics, writeFileStatistics, writeRootBatchpublic Decimal64TreeWriter(int columnId,
TypeDescription schema,
WriterContext writer,
boolean nullable)
throws IOException
IOExceptionpublic void writeBatch(ColumnVector vector, int offset, int length) throws IOException
TreeWriterBasewriteBatch in interface TreeWriterwriteBatch in class TreeWriterBasevector - the vector to write fromoffset - the first value from the vector to writelength - the number of values from the vector to writeIOExceptionpublic void writeStripe(OrcProto.StripeFooter.Builder builder, OrcProto.StripeStatistics.Builder stats, int requiredIndexEntries) throws IOException
TreeWriterwriteStripe in interface TreeWriterwriteStripe in class TreeWriterBasebuilder - the stripe footer that contains the information about the
layout of the stripe. The TreeWriterBase is required to update
the footer with its information.stats - the stripe statistics informationrequiredIndexEntries - the number of index entries that are
required. this is to check to make sure the
row index is well formed.IOExceptionpublic long estimateMemory()
TreeWriterBaseestimateMemory in interface TreeWriterestimateMemory in class TreeWriterBasepublic long getRawDataSize()
TreeWriterpublic void flushStreams()
throws IOException
TreeWriterflushStreams in interface TreeWriterflushStreams in class TreeWriterBaseIOExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.