java.lang.Object
org.apache.arrow.flight.FlightInfo.Builder
- Enclosing class:
- FlightInfo
Builder for FlightInfo.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build FlightInfo object.setAppMetadata
(byte[] appMetadata) Set the app metadata to send along with the flight.setBytes
(long bytes) Set the number of bytes for the flight.Set IPC write options.setOrdered
(boolean ordered) Set whether the flight endpoints are ordered.setRecords
(long records) Set the number of records for the flight.
-
Method Details
-
setBytes
Set the number of bytes for the flight. Default to -1 for unknown.- Parameters:
bytes
- The number of bytes in the flight
-
setRecords
Set the number of records for the flight. Default to -1 for unknown.- Parameters:
records
- The number of records in the flight.
-
setOrdered
Set whether the flight endpoints are ordered. Default is false.- Parameters:
ordered
- Whether the endpoints in this flight are ordered.
-
setOption
Set IPC write options. Default is IpcOption.DEFAULT- Parameters:
option
- IPC write options.
-
setAppMetadata
Set the app metadata to send along with the flight. Default is null.- Parameters:
appMetadata
- Metadata to send along with the flight
-
build
Build FlightInfo object.
-