Class PutResult

java.lang.Object
org.apache.arrow.flight.PutResult
All Implemented Interfaces:
AutoCloseable

public class PutResult extends Object implements AutoCloseable
A message from the server during a DoPut operation.

This object owns an ArrowBuf and should be closed when you are done with it.

  • Method Details

    • metadata

      public static PutResult metadata(ArrowBuf metadata)
      Create a PutResult with application-specific metadata.

      This method assumes ownership of the ArrowBuf.

    • empty

      public static PutResult empty()
      Create an empty PutResult.
    • getApplicationMetadata

      public ArrowBuf getApplicationMetadata()
      Get the metadata in this message. May be null.

      Ownership of the ArrowBuf is retained by this object. Call ReferenceManager.retain() to preserve a reference.

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable