Package dev.vortex.io

Interface NativeWritable

All Superinterfaces:
AutoCloseable, Closeable

public interface NativeWritable extends 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

    Modifier and Type
    Method
    Description
    void
    Flush buffered bytes to the underlying storage.
    void
    write(byte[] buffer, int offset, int length)
    Append length bytes from buffer starting at offset.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • write

      void write(byte[] buffer, int offset, int length) throws IOException
      Append length bytes from buffer starting at offset.
      Throws:
      IOException
    • flush

      void flush() throws IOException
      Flush buffered bytes to the underlying storage.
      Throws:
      IOException