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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidbeginRowGroup()voidclose()Map<OrcColumnId,ColumnStatistics>finishRowGroup()List<StreamDataOutput>getBloomFilters(CompressedMetadataWriter metadataWriter)longgetBufferedBytes()This method returns the size of the flushed data plus any unflushed data.Map<OrcColumnId,ColumnEncoding>getColumnEncodings()Map<OrcColumnId,ColumnStatistics>getColumnStripeStatistics()List<StreamDataOutput>getDataStreams()Get the data streams to be written.List<StreamDataOutput>getIndexStreams(CompressedMetadataWriter metadataWriter)Write index streams to the output and return the streams in the order in which they were written.default List<ColumnWriter>getNestedColumnWriters()longgetRetainedBytes()voidreset()voidwriteBlock(Block block)
-
-
-
Method Detail
-
getNestedColumnWriters
default List<ColumnWriter> getNestedColumnWriters()
-
getColumnEncodings
Map<OrcColumnId,ColumnEncoding> getColumnEncodings()
-
beginRowGroup
void beginRowGroup()
-
writeBlock
void writeBlock(Block block)
-
finishRowGroup
Map<OrcColumnId,ColumnStatistics> finishRowGroup()
-
close
void close()
-
getColumnStripeStatistics
Map<OrcColumnId,ColumnStatistics> getColumnStripeStatistics()
-
getIndexStreams
List<StreamDataOutput> getIndexStreams(CompressedMetadataWriter metadataWriter) throws IOException
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
List<StreamDataOutput> getBloomFilters(CompressedMetadataWriter metadataWriter) throws IOException
- 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()
-
-