Class ByteColumnWriter
java.lang.Object
io.trino.orc.writer.ByteColumnWriter
- All Implemented Interfaces:
ColumnWriter
-
Constructor Summary
ConstructorsConstructorDescriptionByteColumnWriter(OrcColumnId columnId, Type type, CompressionKind compression, int bufferSize) -
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.longvoidreset()voidwriteBlock(Block block) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.orc.writer.ColumnWriter
getNestedColumnWriters
-
Constructor Details
-
ByteColumnWriter
public ByteColumnWriter(OrcColumnId columnId, Type type, CompressionKind compression, int bufferSize)
-
-
Method Details
-
getColumnEncodings
- Specified by:
getColumnEncodingsin interfaceColumnWriter
-
beginRowGroup
public void beginRowGroup()- Specified by:
beginRowGroupin interfaceColumnWriter
-
writeBlock
- Specified by:
writeBlockin interfaceColumnWriter
-
finishRowGroup
- Specified by:
finishRowGroupin interfaceColumnWriter
-
close
public void close()- Specified by:
closein interfaceColumnWriter
-
getColumnStripeStatistics
- Specified by:
getColumnStripeStatisticsin interfaceColumnWriter
-
getIndexStreams
public List<StreamDataOutput> getIndexStreams(CompressedMetadataWriter metadataWriter) throws IOException Description copied from interface:ColumnWriterWrite 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.- Specified by:
getIndexStreamsin interfaceColumnWriter- Throws:
IOException
-
getBloomFilters
public List<StreamDataOutput> getBloomFilters(CompressedMetadataWriter metadataWriter) throws IOException - Specified by:
getBloomFiltersin interfaceColumnWriter- Throws:
IOException
-
getDataStreams
Description copied from interface:ColumnWriterGet the data streams to be written.- Specified by:
getDataStreamsin interfaceColumnWriter
-
getBufferedBytes
public long getBufferedBytes()Description copied from interface:ColumnWriterThis 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.- Specified by:
getBufferedBytesin interfaceColumnWriter
-
getRetainedBytes
public long getRetainedBytes()- Specified by:
getRetainedBytesin interfaceColumnWriter
-
reset
public void reset()- Specified by:
resetin interfaceColumnWriter
-