Package io.trino.orc
Class OutputStreamOrcDataSink
- java.lang.Object
-
- io.trino.orc.OutputStreamOrcDataSink
-
- All Implemented Interfaces:
OrcDataSink,Closeable,AutoCloseable
public class OutputStreamOrcDataSink extends Object implements OrcDataSink
-
-
Constructor Summary
Constructors Constructor Description OutputStreamOrcDataSink(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ORC file is completelonggetRetainedSizeInBytes()Gets the size of the memory buffers.longsize()Number of bytes written to this sink so far.voidwrite(List<OrcDataOutput> outputData)Write a stripe and optionally header and footer data
-
-
-
Constructor Detail
-
OutputStreamOrcDataSink
public OutputStreamOrcDataSink(OutputStream outputStream)
-
-
Method Detail
-
size
public long size()
Description copied from interface:OrcDataSinkNumber of bytes written to this sink so far.- Specified by:
sizein interfaceOrcDataSink
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
Description copied from interface:OrcDataSinkGets the size of the memory buffers.- Specified by:
getRetainedSizeInBytesin interfaceOrcDataSink
-
write
public void write(List<OrcDataOutput> outputData)
Description copied from interface:OrcDataSinkWrite a stripe and optionally header and footer data- Specified by:
writein interfaceOrcDataSink
-
close
public void close() throws IOExceptionDescription copied from interface:OrcDataSinkORC file is complete- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceOrcDataSink- Throws:
IOException
-
-