struct FlightIpcEncoder {
options: IpcWriteOptions,
data_gen: IpcDataGenerator,
dictionary_tracker: DictionaryTracker,
compression_context: CompressionContext,
}Expand description
The data needed to encode a stream of flight data, holding on to shared Dictionaries.
TODO: at allow dictionaries to be flushed / avoid building them
TODO limit on the number of dictionaries???
Fields§
§options: IpcWriteOptions§data_gen: IpcDataGenerator§dictionary_tracker: DictionaryTracker§compression_context: CompressionContextImplementations§
Source§impl FlightIpcEncoder
impl FlightIpcEncoder
fn new(options: IpcWriteOptions, error_on_replacement: bool) -> Self
Sourcefn encode_schema(&self, schema: &Schema) -> FlightData
fn encode_schema(&self, schema: &Schema) -> FlightData
Encode a schema as a FlightData
Sourcefn encode_batch(
&mut self,
batch: &RecordBatch,
) -> Result<(Vec<FlightData>, FlightData)>
fn encode_batch( &mut self, batch: &RecordBatch, ) -> Result<(Vec<FlightData>, FlightData)>
Convert a RecordBatch to a Vec of FlightData representing
dictionaries and a FlightData representing the batch
Auto Trait Implementations§
impl Freeze for FlightIpcEncoder
impl RefUnwindSafe for FlightIpcEncoder
impl Send for FlightIpcEncoder
impl Sync for FlightIpcEncoder
impl Unpin for FlightIpcEncoder
impl UnwindSafe for FlightIpcEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].