pub struct ArrowRecordBatchIpcStreamFormat { /* private fields */ }Available on crate feature
arrow only.Expand description
Arrow record batches in IPC stream framing.
Encoding needs the schema up front, because it is written once ahead of the first batch. Decoding does not: the schema arrives in the stream.
Implementations§
Source§impl ArrowRecordBatchIpcStreamFormat
impl ArrowRecordBatchIpcStreamFormat
Sourcepub fn new(schema: Arc<Schema>) -> Self
pub fn new(schema: Arc<Schema>) -> Self
A format writing batches of schema with default IPC options.
Sourcepub fn with_options(schema: Arc<Schema>, options: IpcWriteOptions) -> Self
pub fn with_options(schema: Arc<Schema>, options: IpcWriteOptions) -> Self
A format writing batches of schema with the given IPC options.
Sourcepub fn for_decoding() -> Self
pub fn for_decoding() -> Self
A format for decoding only.
An Arrow IPC stream carries its own schema, so a decoder needs none. Named for what it
is rather than offered as a Default, because encoding with it would write an empty
schema and produce a useless stream.
Trait Implementations§
Source§impl Clone for ArrowRecordBatchIpcStreamFormat
impl Clone for ArrowRecordBatchIpcStreamFormat
Source§fn clone(&self) -> ArrowRecordBatchIpcStreamFormat
fn clone(&self) -> ArrowRecordBatchIpcStreamFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DefaultFormat for ArrowRecordBatchIpcStreamFormat
impl DefaultFormat for ArrowRecordBatchIpcStreamFormat
Source§fn default_format() -> Self
fn default_format() -> Self
Decoding needs no configuration; see for_decoding.
Source§impl StreamFormat for ArrowRecordBatchIpcStreamFormat
impl StreamFormat for ArrowRecordBatchIpcStreamFormat
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
A short, stable name, reported as the
format tracing field.Source§fn default_content_type(&self) -> &'static str
fn default_content_type(&self) -> &'static str
The
Content-Type this format emits when encoding.Source§fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
Whether an incoming
Content-Type should be accepted as this format. Read moreSource§impl StreamFormatDecode<RecordBatch> for ArrowRecordBatchIpcStreamFormat
impl StreamFormatDecode<RecordBatch> for ArrowRecordBatchIpcStreamFormat
Source§type Frame = Result<RecordBatch, StreamError>
type Frame = Result<RecordBatch, StreamError>
One framed record, before deserialisation. Read more
Source§type Framer = ArrowIpcCodec
type Framer = ArrowIpcCodec
Splits the body into records. Read more
Source§type Parser = IdentityParser
type Parser = IdentityParser
Deserialises framed records.
Source§fn framer(&self, options: &DecodeOptions) -> Self::Framer
fn framer(&self, options: &DecodeOptions) -> Self::Framer
Build a framer for one body.
Auto Trait Implementations§
impl Freeze for ArrowRecordBatchIpcStreamFormat
impl RefUnwindSafe for ArrowRecordBatchIpcStreamFormat
impl Send for ArrowRecordBatchIpcStreamFormat
impl Sync for ArrowRecordBatchIpcStreamFormat
impl Unpin for ArrowRecordBatchIpcStreamFormat
impl UnsafeUnpin for ArrowRecordBatchIpcStreamFormat
impl UnwindSafe for ArrowRecordBatchIpcStreamFormat
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