Package dev.vortex.io
Interface NativeWritable
- All Superinterfaces:
AutoCloseable,Closeable
A sequential byte sink supplied by the caller and written to from native code.
Implementations bridge external output abstractions — for example Iceberg's PositionOutputStream — into
the Vortex native writer. Writes are sequential and single-threaded: the native side never issues concurrent
write calls against the same instance.
Lifecycle: the creator owns this object. Native code calls write(byte[], int, int) and flush() but never
Closeable.close(); after VortexWriter.close() returns, all bytes have been written and flushed,
and the creator must close the underlying stream to finalize it.
-
Method Summary
-
Method Details
-
write
Appendlengthbytes frombufferstarting atoffset.- Throws:
IOException
-
flush
Flush buffered bytes to the underlying storage.- Throws:
IOException
-