public class BooleanTreeWriter extends TreeWriterBase
TreeWriter.FactorybloomFilter, bloomFilterEntry, bloomFilterUtf8, context, createBloomFilter, encryption, fileStatistics, id, indexStatistics, isPresent, rowIndexPosition, schema, stripeColStatistics| Constructor and Description |
|---|
BooleanTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
WriterContext writer) |
| 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 |
prepareStripe(int stripeId)
Set up for the next stripe.
|
void |
writeBatch(ColumnVector vector,
int offset,
int length)
Write the values from the given vector from offset for length elements.
|
void |
writeStripe(int requiredIndexEntries)
Write the stripe out to the file.
|
addStripeStatistics, createRowIndexEntry, getCurrentStatistics, getRowIndex, getRowIndexEntry, getStripeStatistics, writeFileStatistics, writeRootBatchpublic BooleanTreeWriter(TypeDescription schema, WriterEncryptionVariant encryption, WriterContext writer) 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(int requiredIndexEntries)
throws IOException
TreeWriterwriteStripe in interface TreeWriterwriteStripe in class TreeWriterBaserequiredIndexEntries - 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 TreeWriterBaseIOExceptionpublic void prepareStripe(int stripeId)
TreeWriterprepareStripe in interface TreeWriterprepareStripe in class TreeWriterBasestripeId - the next stripe idCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.