public class ListTreeWriter extends TreeWriterBase
TreeWriter.Factory
bloomFilter, bloomFilterEntry, bloomFilterUtf8, context, createBloomFilter, encryption, fileStatistics, id, indexStatistics, isPresent, rowIndexPosition, schema, stripeColStatistics
Modifier and Type | Method and Description |
---|---|
void |
addStripeStatistics(StripeStatistics[] stats)
During a stripe append, we need to handle the stripe statistics.
|
void |
createRowIndexEntry()
Create a row index entry with the previous location and the current
index statistics.
|
long |
estimateMemory()
Estimate how much memory the writer is consuming excluding the streams.
|
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 the values from the given vector from offset for length elements.
|
void |
writeFileStatistics()
Write the FileStatistics for each column in each encryption variant.
|
void |
writeStripe(int requiredIndexEntries)
Write the stripe out to the file.
|
getRowIndex, getRowIndexEntry, getStripeStatistics, writeRootBatch
public void createRowIndexEntry() throws IOException
TreeWriterBase
createRowIndexEntry
in interface TreeWriter
createRowIndexEntry
in class TreeWriterBase
IOException
public void writeBatch(ColumnVector vector, int offset, int length) throws IOException
TreeWriterBase
writeBatch
in interface TreeWriter
writeBatch
in class TreeWriterBase
vector
- the vector to write fromoffset
- the first value from the vector to writelength
- the number of values from the vector to writeIOException
public void writeStripe(int requiredIndexEntries) throws IOException
TreeWriter
writeStripe
in interface TreeWriter
writeStripe
in class TreeWriterBase
requiredIndexEntries
- the number of index entries that are
required. this is to check to make sure the
row index is well formed.IOException
public void addStripeStatistics(StripeStatistics[] stats) throws IOException
TreeWriter
addStripeStatistics
in interface TreeWriter
addStripeStatistics
in class TreeWriterBase
stats
- the statistics for the new stripe across the
encryption variantsIOException
public long estimateMemory()
TreeWriterBase
estimateMemory
in interface TreeWriter
estimateMemory
in class TreeWriterBase
public long getRawDataSize()
TreeWriter
public void writeFileStatistics() throws IOException
TreeWriter
writeFileStatistics
in interface TreeWriter
writeFileStatistics
in class TreeWriterBase
IOException
public void flushStreams() throws IOException
TreeWriter
flushStreams
in interface TreeWriter
flushStreams
in class TreeWriterBase
IOException
public void getCurrentStatistics(ColumnStatistics[] output)
TreeWriter
getCurrentStatistics
in interface TreeWriter
getCurrentStatistics
in class TreeWriterBase
output
- an array that is filled in with the resultspublic void prepareStripe(int stripeId)
TreeWriter
prepareStripe
in interface TreeWriter
prepareStripe
in class TreeWriterBase
stripeId
- the next stripe idCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.