Struct RecordBatchDecoder
pub struct RecordBatchDecoder<'a> {
batch: RecordBatch<'a>,
schema: Arc<Schema>,
dictionaries_by_id: &'a HashMap<i64, Arc<dyn Array>>,
compression: Option<CompressionCodec>,
version: MetadataVersion,
data: &'a Buffer,
nodes: VectorIter<'a, FieldNode>,
buffers: VectorIter<'a, Buffer>,
projection: Option<&'a [usize]>,
require_alignment: bool,
skip_validation: UnsafeFlag,
}Expand description
State for decoding Arrow arrays from an IPC RecordBatch structure to
RecordBatch
Fields§
§batch: RecordBatch<'a>§schema: Arc<Schema>§dictionaries_by_id: &'a HashMap<i64, Arc<dyn Array>>§compression: Option<CompressionCodec>§version: MetadataVersion§data: &'a Buffer§nodes: VectorIter<'a, FieldNode>§buffers: VectorIter<'a, Buffer>§projection: Option<&'a [usize]>§require_alignment: bool§skip_validation: UnsafeFlagImplementations§
§impl<'a> RecordBatchDecoder<'a>
impl<'a> RecordBatchDecoder<'a>
pub fn with_projection(
self,
projection: Option<&'a [usize]>,
) -> RecordBatchDecoder<'a>
pub fn with_projection( self, projection: Option<&'a [usize]>, ) -> RecordBatchDecoder<'a>
Set the projection (default: None)
If set, the projection is the list of column indices that will be read
pub fn with_require_alignment(
self,
require_alignment: bool,
) -> RecordBatchDecoder<'a>
pub fn with_require_alignment( self, require_alignment: bool, ) -> RecordBatchDecoder<'a>
Set require_alignment (default: false)
If true, buffers must be aligned appropriately or error will result. If false, buffers will be copied to aligned buffers if necessary.
Auto Trait Implementations§
impl<'a> Freeze for RecordBatchDecoder<'a>
impl<'a> !RefUnwindSafe for RecordBatchDecoder<'a>
impl<'a> Send for RecordBatchDecoder<'a>
impl<'a> Sync for RecordBatchDecoder<'a>
impl<'a> Unpin for RecordBatchDecoder<'a>
impl<'a> !UnwindSafe for RecordBatchDecoder<'a>
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more