Package io.trino.orc
Interface OrcDataSink
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
OutputStreamOrcDataSink
public interface OrcDataSink extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
size
long size()
Number of bytes written to this sink so far.
-
getRetainedSizeInBytes
long getRetainedSizeInBytes()
Gets the size of the memory buffers.
-
write
void write(List<OrcDataOutput> outputData) throws IOException
Write a stripe and optionally header and footer data- Throws:
IOException
-
close
void close() throws IOExceptionORC file is complete- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-