pub struct ArrowBatch { /* private fields */ }Implementations§
Source§impl ArrowBatch
impl ArrowBatch
pub fn try_new(batch: RecordBatch) -> Result<ArrowBatch, Error>
Sourcepub fn try_map<U, E>(
self,
additional_peak: usize,
map: impl FnOnce(RecordBatch) -> Result<U, E>,
) -> Result<ReadBatch<U>, E>
pub fn try_map<U, E>( self, additional_peak: usize, map: impl FnOnce(RecordBatch) -> Result<U, E>, ) -> Result<ReadBatch<U>, E>
Projects an admitted batch while preserving its original shared claim.
additional_peak bounds new output allocations and conversion scratch.
Private output-owner storage is admitted separately, before the callback.
Immutable Arrow buffer clones and slices may share the original claim.
The callback must transfer payloads only into its successful value; errors
and external captures must not retain them. Nested owners retain their guards.
Unretained batches from try_new or from_ipc refuse without conversion.
pub fn as_record_batch(&self) -> &RecordBatch
pub fn ipc_bytes(&self) -> &[u8] ⓘ
pub fn from_ipc(bytes: Vec<u8>) -> Result<ArrowBatch, Error>
pub fn validate_schema(&self, schema: &Schema) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ArrowBatch
impl Clone for ArrowBatch
Source§fn clone(&self) -> ArrowBatch
fn clone(&self) -> ArrowBatch
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 Debug for ArrowBatch
impl Debug for ArrowBatch
Source§impl MemorySize for ArrowBatch
impl MemorySize for ArrowBatch
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Auto Trait Implementations§
impl !RefUnwindSafe for ArrowBatch
impl !UnwindSafe for ArrowBatch
impl Freeze for ArrowBatch
impl Send for ArrowBatch
impl Sync for ArrowBatch
impl Unpin for ArrowBatch
impl UnsafeUnpin for ArrowBatch
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