Package io.trino.orc
Class OutputStreamOrcDataSink
java.lang.Object
io.trino.orc.OutputStreamOrcDataSink
- All Implemented Interfaces:
OrcDataSink,Closeable,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()ORC file is completestatic OutputStreamOrcDataSinkcreate(TrinoOutputFile outputFile) static OutputStreamOrcDataSinkcreate(OutputStream outputStream) Deprecated.longGets 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
-
Method Details
-
create
- Throws:
IOException
-
create
@Deprecated public static OutputStreamOrcDataSink create(OutputStream outputStream) throws IOException Deprecated.- Throws:
IOException
-
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
Description copied from interface:OrcDataSinkWrite a stripe and optionally header and footer data- Specified by:
writein interfaceOrcDataSink
-
close
Description copied from interface:OrcDataSinkORC file is complete- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceOrcDataSink- Throws:
IOException
-