Package io.trino.orc
Class OrcWriter
java.lang.Object
io.trino.orc.OrcWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOrcWriter(OrcDataSink orcDataSink, List<String> columnNames, List<Type> types, ColumnMetadata<OrcType> orcTypes, CompressionKind compression, OrcWriterOptions options, Map<String, String> userMetadata, boolean validate, OrcWriteValidation.OrcWriteValidationMode validationMode, OrcWriterStats stats) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intNumber of pending bytes not yet flushed.longlongintlongNumber of bytes already flushed to the data sink.voidupdateUserMetadata(Map<String, String> updatedProperties) voidvalidate(OrcDataSource input) void
-
Constructor Details
-
OrcWriter
public OrcWriter(OrcDataSink orcDataSink, List<String> columnNames, List<Type> types, ColumnMetadata<OrcType> orcTypes, CompressionKind compression, OrcWriterOptions options, Map<String, String> userMetadata, boolean validate, OrcWriteValidation.OrcWriteValidationMode validationMode, OrcWriterStats stats)
-
-
Method Details
-
getWrittenBytes
public long getWrittenBytes()Number of bytes already flushed to the data sink. -
getBufferedBytes
public int getBufferedBytes()Number of pending bytes not yet flushed. -
getStripeRowCount
public int getStripeRowCount() -
getRetainedBytes
public long getRetainedBytes() -
write
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
updateUserMetadata
-
validate
- Throws:
OrcCorruptionException
-
getFileRowCount
public long getFileRowCount() -
getFileStats
-