Package io.trino.hive.formats.line.text
Class TextLineWriter
java.lang.Object
io.trino.hive.formats.line.text.TextLineWriter
- All Implemented Interfaces:
LineWriter,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionTextLineWriter(OutputStream outputStream, Optional<CompressionKind> compressionKind) -
Method Summary
-
Constructor Details
-
TextLineWriter
public TextLineWriter(OutputStream outputStream, Optional<CompressionKind> compressionKind) 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
-