Class ListColumnWriter
java.lang.Object
io.trino.orc.writer.ListColumnWriter
- All Implemented Interfaces:
ColumnWriter
-
Constructor Summary
ConstructorsConstructorDescriptionListColumnWriter(OrcColumnId columnId, CompressionKind compression, int bufferSize, ColumnWriter elementWriter) -
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)
-
Constructor Details
-
ListColumnWriter
public ListColumnWriter(OrcColumnId columnId, CompressionKind compression, int bufferSize, ColumnWriter elementWriter)
-
-
Method Details
-
getNestedColumnWriters
- Specified by:
getNestedColumnWritersin interfaceColumnWriter
-
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
-