Package io.trino.hive.formats.rcfile
Class RcFileWriter
java.lang.Object
io.trino.hive.formats.rcfile.RcFileWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionRcFileWriter(OutputStream rawOutput, List<Type> types, ColumnEncodingFactory encoding, Optional<CompressionKind> compressionKind, Map<String, String> metadata, boolean validate) RcFileWriter(OutputStream rawOutput, List<Type> types, ColumnEncodingFactory encoding, Optional<CompressionKind> compressionKind, Map<String, String> metadata, io.airlift.units.DataSize targetMinRowGroupSize, io.airlift.units.DataSize targetMaxRowGroupSize, boolean validate) -
Method Summary
-
Constructor Details
-
RcFileWriter
public RcFileWriter(OutputStream rawOutput, List<Type> types, ColumnEncodingFactory encoding, Optional<CompressionKind> compressionKind, Map<String, String> metadata, boolean validate) throws IOException- Throws:
IOException
-
RcFileWriter
public RcFileWriter(OutputStream rawOutput, List<Type> types, ColumnEncodingFactory encoding, Optional<CompressionKind> compressionKind, Map<String, String> metadata, io.airlift.units.DataSize targetMinRowGroupSize, io.airlift.units.DataSize targetMaxRowGroupSize, boolean validate) throws IOException- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
validate
- Throws:
FileCorruptionException
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
write
- Throws:
IOException
-