diff --git a/arrow-flight/src/lib.rs b/arrow-flight/src/lib.rs index 99f2a2ed462b..db900341560c 100644 --- a/arrow-flight/src/lib.rs +++ b/arrow-flight/src/lib.rs @@ -603,6 +603,12 @@ impl FlightInfo { self } + /// Add endpoints for fetching all data + pub fn with_endpoints(mut self, endpoints: Vec) -> Self { + self.endpoint = endpoints; + self + } + /// Add a [`FlightDescriptor`] describing what this data is pub fn with_descriptor(mut self, flight_descriptor: FlightDescriptor) -> Self { self.flight_descriptor = Some(flight_descriptor);