public interface TreeWriter
| Modifier and Type | Interface and Description |
|---|---|
static class |
TreeWriter.Factory |
| Modifier and Type | Method and Description |
|---|---|
void |
addStripeStatistics(StripeStatistics[] stripeStatistics)
During a stripe append, we need to handle the stripe statistics.
|
void |
createRowIndexEntry()
Create a row index entry at the current point in the stripe.
|
long |
estimateMemory()
Estimate the memory currently used to buffer the stripe.
|
void |
flushStreams()
Flush the TreeWriter stream
|
void |
getCurrentStatistics(ColumnStatistics[] output)
Get the current file statistics for each column.
|
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 a ColumnVector to the file.
|
void |
writeFileStatistics()
Write the FileStatistics for each column in each encryption variant.
|
void |
writeRootBatch(VectorizedRowBatch batch,
int offset,
int length)
Write a VectorizedRowBath to the file.
|
void |
writeStripe(int requiredIndexEntries)
Write the stripe out to the file.
|
long estimateMemory()
long getRawDataSize()
void prepareStripe(int stripeId)
stripeId - the next stripe idvoid writeRootBatch(VectorizedRowBatch batch, int offset, int length) throws IOException
batch - the list of all of the columnsoffset - the first row from the batch to writelength - the number of rows to writeIOExceptionvoid writeBatch(ColumnVector vector, int offset, int length) throws IOException
vector - the data to writeoffset - the first value offset to write.length - the number of values to writeIOExceptionvoid createRowIndexEntry()
throws IOException
IOExceptionvoid flushStreams()
throws IOException
IOExceptionvoid writeStripe(int requiredIndexEntries)
throws IOException
requiredIndexEntries - the number of index entries that are
required. this is to check to make sure the
row index is well formed.IOExceptionvoid addStripeStatistics(StripeStatistics[] stripeStatistics) throws IOException
stripeStatistics - the statistics for the new stripe across the
encryption variantsIOExceptionvoid writeFileStatistics()
throws IOException
IOExceptionvoid getCurrentStatistics(ColumnStatistics[] output)
output - an array that is filled in with the resultsCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.