public interface PageWriter
| Modifier and Type | Method and Description |
|---|---|
long |
allocatedSize() |
long |
getMemSize() |
String |
memUsageString(String prefix) |
void |
writeDictionaryPage(DictionaryPage dictionaryPage)
writes a dictionary page
|
void |
writePage(BytesInput bytesInput,
int valueCount,
Statistics<?> statistics,
Encoding rlEncoding,
Encoding dlEncoding,
Encoding valuesEncoding)
writes a single page
|
void |
writePageV2(int rowCount,
int nullCount,
int valueCount,
BytesInput repetitionLevels,
BytesInput definitionLevels,
Encoding dataEncoding,
BytesInput data,
Statistics<?> statistics)
writes a single page in the new format
|
void writePage(BytesInput bytesInput, int valueCount, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding) throws IOException
bytesInput - the bytes for the pagevalueCount - the number of values in that pagestatistics - the statistics for that pagerlEncoding - repetition level encodingdlEncoding - definition level encodingvaluesEncoding - values encodingIOException - if there is an exception while writing page datavoid writePageV2(int rowCount,
int nullCount,
int valueCount,
BytesInput repetitionLevels,
BytesInput definitionLevels,
Encoding dataEncoding,
BytesInput data,
Statistics<?> statistics)
throws IOException
rowCount - the number of rows in this pagenullCount - the number of null values (out of valueCount)valueCount - the number of values in that page (there could be multiple values per row for repeated fields)repetitionLevels - the repetition levels encoded in RLE without any size headerdefinitionLevels - the definition levels encoded in RLE without any size headerdataEncoding - the encoding for the datadata - the data encoded with dataEncodingstatistics - optional stats for this pageIOException - if there is an exception while writing page datalong getMemSize()
long allocatedSize()
void writeDictionaryPage(DictionaryPage dictionaryPage) throws IOException
dictionaryPage - the dictionary page containing the dictionary dataIOException - if there was an exception while writingCopyright © 2019 The Apache Software Foundation. All rights reserved.