Package io.trino.orc.writer
Interface ColumnWriter
- All Known Implementing Classes:
BooleanColumnWriter,ByteColumnWriter,DecimalColumnWriter,DoubleColumnWriter,FloatColumnWriter,ListColumnWriter,LongColumnWriter,MapColumnWriter,SliceDictionaryColumnWriter,SliceDirectColumnWriter,StructColumnWriter,TimeColumnWriter,TimestampColumnWriter
public interface ColumnWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()getBloomFilters(CompressedMetadataWriter metadataWriter) longThis method returns the size of the flushed data plus any unflushed data.Get the data streams to be written.getIndexStreams(CompressedMetadataWriter metadataWriter) Write index streams to the output and return the streams in the order in which they were written.default List<ColumnWriter>longvoidreset()voidwriteBlock(Block block)
-
Method Details
-
getNestedColumnWriters
-
getColumnEncodings
Map<OrcColumnId,ColumnEncoding> getColumnEncodings() -
beginRowGroup
void beginRowGroup() -
writeBlock
-
finishRowGroup
Map<OrcColumnId,ColumnStatistics> finishRowGroup() -
close
void close() -
getColumnStripeStatistics
Map<OrcColumnId,ColumnStatistics> getColumnStripeStatistics() -
getIndexStreams
Write index streams to the output and return the streams in the order in which they were written. The ordering is critical because the stream only contain a length with no offset.- Throws:
IOException
-
getBloomFilters
- Throws:
IOException
-
getDataStreams
List<StreamDataOutput> getDataStreams()Get the data streams to be written. -
getBufferedBytes
long getBufferedBytes()This method returns the size of the flushed data plus any unflushed data. If the output is compressed, flush data size is the size after compression. -
getRetainedBytes
long getRetainedBytes() -
reset
void reset()
-