Class FlightInfo.Builder

java.lang.Object
org.apache.arrow.flight.FlightInfo.Builder
Enclosing class:
FlightInfo

public static final class FlightInfo.Builder extends Object
Builder for FlightInfo.
  • Method Details

    • setBytes

      public FlightInfo.Builder setBytes(long bytes)
      Set the number of bytes for the flight. Default to -1 for unknown.
      Parameters:
      bytes - The number of bytes in the flight
    • setRecords

      public FlightInfo.Builder setRecords(long records)
      Set the number of records for the flight. Default to -1 for unknown.
      Parameters:
      records - The number of records in the flight.
    • setOrdered

      public FlightInfo.Builder setOrdered(boolean ordered)
      Set whether the flight endpoints are ordered. Default is false.
      Parameters:
      ordered - Whether the endpoints in this flight are ordered.
    • setOption

      public FlightInfo.Builder setOption(IpcOption option)
      Set IPC write options. Default is IpcOption.DEFAULT
      Parameters:
      option - IPC write options.
    • setAppMetadata

      public FlightInfo.Builder setAppMetadata(byte[] appMetadata)
      Set the app metadata to send along with the flight. Default is null.
      Parameters:
      appMetadata - Metadata to send along with the flight
    • build

      public FlightInfo build()
      Build FlightInfo object.