public abstract class PrimitiveColumnWriter extends Object implements ColumnWriter
ColumnWriter.BufferData| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected org.apache.parquet.column.ColumnDescriptor |
columnDescriptor |
protected org.apache.parquet.column.statistics.Statistics<?> |
columnStatistics |
protected com.facebook.presto.parquet.writer.ParquetCompressor |
compressor |
protected int |
currentPageNullCounts |
protected Set<org.apache.parquet.column.Encoding> |
encodings |
protected boolean |
getDataStreamsCalled |
protected int |
maxDefinitionLevel |
protected List<ParquetDataOutput> |
pageBuffer |
protected int |
pageSizeThreshold |
protected org.apache.parquet.format.converter.ParquetMetadataConverter |
parquetMetadataConverter |
protected PrimitiveValueWriter |
primitiveValueWriter |
protected long |
totalCompressedSize |
protected long |
totalUnCompressedSize |
protected long |
totalValues |
protected int |
valueCount |
| Constructor and Description |
|---|
PrimitiveColumnWriter(Type type,
org.apache.parquet.column.ColumnDescriptor columnDescriptor,
PrimitiveValueWriter primitiveValueWriter,
org.apache.parquet.hadoop.metadata.CompressionCodecName compressionCodecName,
int pageSizeThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
flushCurrentPageToBuffer() |
List<ColumnWriter.BufferData> |
getBuffer() |
abstract long |
getBufferedBytes() |
protected org.apache.parquet.format.ColumnMetaData |
getColumnMetaData() |
protected List<ParquetDataOutput> |
getDataStreams() |
long |
getRetainedBytes() |
void |
reset() |
void |
writeBlock(ColumnChunk columnChunk) |
protected abstract void |
writeDefinitionAndRepetitionLevels(ColumnChunk current) |
protected final org.apache.parquet.column.ColumnDescriptor columnDescriptor
protected final PrimitiveValueWriter primitiveValueWriter
protected final org.apache.parquet.format.converter.ParquetMetadataConverter parquetMetadataConverter
protected final Set<org.apache.parquet.column.Encoding> encodings
protected final int maxDefinitionLevel
protected final List<ParquetDataOutput> pageBuffer
@Nullable protected final com.facebook.presto.parquet.writer.ParquetCompressor compressor
protected final int pageSizeThreshold
protected boolean closed
protected boolean getDataStreamsCalled
protected int valueCount
protected int currentPageNullCounts
protected long totalCompressedSize
protected long totalUnCompressedSize
protected long totalValues
protected org.apache.parquet.column.statistics.Statistics<?> columnStatistics
public PrimitiveColumnWriter(Type type, org.apache.parquet.column.ColumnDescriptor columnDescriptor, PrimitiveValueWriter primitiveValueWriter, org.apache.parquet.hadoop.metadata.CompressionCodecName compressionCodecName, int pageSizeThreshold)
public void writeBlock(ColumnChunk columnChunk) throws IOException
writeBlock in interface ColumnWriterIOExceptionpublic void close()
close in interface ColumnWriterpublic List<ColumnWriter.BufferData> getBuffer() throws IOException
getBuffer in interface ColumnWriterIOExceptionprotected org.apache.parquet.format.ColumnMetaData getColumnMetaData()
protected List<ParquetDataOutput> getDataStreams() throws IOException
IOExceptionpublic abstract long getBufferedBytes()
getBufferedBytes in interface ColumnWriterpublic long getRetainedBytes()
getRetainedBytes in interface ColumnWriterpublic void reset()
reset in interface ColumnWriterprotected abstract void writeDefinitionAndRepetitionLevels(ColumnChunk current) throws IOException
IOExceptionprotected abstract void flushCurrentPageToBuffer()
throws IOException
IOExceptionCopyright © 2012–2024. All rights reserved.