struct FlightIpcEncoder {
options: IpcWriteOptions,
data_gen: IpcDataGenerator,
dictionary_tracker: DictionaryTracker,
ipc_write_context: IpcWriteContext,
}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§ipc_write_context: IpcWriteContextImplementations§
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<(impl Iterator<Item = FlightData> + use<>, FlightData)>
fn encode_batch( &mut self, batch: &RecordBatch, ) -> Result<(impl Iterator<Item = FlightData> + use<>, FlightData)>
Convert a RecordBatch to a Vec of FlightData representing
dictionaries and a FlightData representing the batch
Auto Trait Implementations§
impl Forget for FlightIpcEncoder
impl Freeze for FlightIpcEncoderwhere
*const u8 is !null: Freeze,
PhantomData<(i64, ArrayData)>: Freeze,
PhantomData<i64>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<FieldLoc>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<WIPOffset<&'static str>>: Freeze,
PhantomData<&'static ()>: Freeze,
*const ZSTD_CCtx_s is !null: Freeze,
*const ArcInner<CDictInner> is !null: Freeze,
PhantomData<ArcInner<CDictInner>>: Freeze,
*const ZSTD_CDict_s is !null: Freeze,
*const dyn Sync + Send is !null: Freeze,
*const [u32; 4096] is !null: Freeze,
PhantomData<[u32; 4096]>: Freeze,
impl Move for FlightIpcEncoder
impl RefUnwindSafe for FlightIpcEncoderwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Option<Box<dyn MemoryReservation>>>: RefUnwindSafe,
Owner: RefUnwindSafe,
impl Send for FlightIpcEncoder
impl Sync for FlightIpcEncoder
impl Unpin for FlightIpcEncoderwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<Field>: Unpin,
Arc<[Arc<Field>]>: Unpin,
Arc<[(i8, Arc<Field>)]>: Unpin,
Box<DataType>: Unpin,
Arc<Bytes>: Unpin,
*const u8: Unpin,
&'static str: Unpin,
&'static (): Unpin,
*const ZSTD_CCtx_s is !null: Unpin,
Arc<CDictInner>: Unpin,
*const ZSTD_CDict_s is !null: Unpin,
*const dyn Sync + Send is !null: Unpin,
Box<[u32; 4096]>: Unpin,
impl UnsafeUnpin for FlightIpcEncoderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(i64, ArrayData)>: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FieldLoc>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<WIPOffset<&'static str>>: UnsafeUnpin,
PhantomData<&'static ()>: UnsafeUnpin,
*const ZSTD_CCtx_s is !null: UnsafeUnpin,
*const ArcInner<CDictInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<CDictInner>>: UnsafeUnpin,
*const ZSTD_CDict_s is !null: UnsafeUnpin,
*const dyn Sync + Send is !null: UnsafeUnpin,
*const [u32; 4096] is !null: UnsafeUnpin,
PhantomData<[u32; 4096]>: UnsafeUnpin,
impl UnwindSafe for FlightIpcEncoderwhere
HashMap<i64, ArrayData>: UnwindSafe,
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
&'static (): UnwindSafe,
NonNull<ZSTD_CCtx_s>: UnwindSafe,
Arc<CDictInner>: UnwindSafe,
NonNull<ZSTD_CDict_s>: UnwindSafe,
Owner: UnwindSafe,
BoxRaw<[u32; 4096]>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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].