Class SequenceFileWriter
java.lang.Object
io.trino.hive.formats.line.sequence.SequenceFileWriter
- All Implemented Interfaces:
LineWriter,Closeable,AutoCloseable
Sequence file writer is hard coded to the behavior of HiveSequenceFileOutputFormat with a Text value class.
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceFileWriter(OutputStream rawOutput, Optional<CompressionKind> compressionKind, boolean blockCompression, Map<String, String> metadata) -
Method Summary
-
Constructor Details
-
SequenceFileWriter
public SequenceFileWriter(OutputStream rawOutput, Optional<CompressionKind> compressionKind, boolean blockCompression, Map<String, String> metadata) throws IOException- Throws:
IOException
-
-
Method Details
-
getWrittenBytes
public long getWrittenBytes()- Specified by:
getWrittenBytesin interfaceLineWriter
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceLineWriter
-
write
- Specified by:
writein interfaceLineWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-