pub struct BodyCompression<'a> {
pub _tab: Table<'a>,
}
Expand description
Optional compression for the memory buffers constituting IPC message bodies. Intended for use with RecordBatch but could be used for other message types
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> BodyCompression<'a>
impl<'a> BodyCompression<'a>
pub const VT_CODEC: u16 = 4u16
pub const VT_METHOD: u16 = 6u16
pub unsafe fn init_from_table(table: Table<'a>) -> BodyCompression<'a>
pub fn create<'bldr, 'args, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args BodyCompressionArgs
) -> WIPOffset<BodyCompression<'bldr>>where
'bldr: 'args,
'args: 'mut_bldr,
sourcepub fn codec(&self) -> CompressionType
pub fn codec(&self) -> CompressionType
Compressor library. For LZ4_FRAME, each compressed buffer must consist of a single frame.
sourcepub fn method(&self) -> BodyCompressionMethod
pub fn method(&self) -> BodyCompressionMethod
Indicates the way the record batch body was compressed
Trait Implementations§
source§impl<'a> Clone for BodyCompression<'a>
impl<'a> Clone for BodyCompression<'a>
source§fn clone(&self) -> BodyCompression<'a>
fn clone(&self) -> BodyCompression<'a>
Returns a copy of the value. Read more
1.0.0 · 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 BodyCompression<'_>
impl Debug for BodyCompression<'_>
source§impl<'a> Follow<'a> for BodyCompression<'a>
impl<'a> Follow<'a> for BodyCompression<'a>
source§impl<'a> PartialEq for BodyCompression<'a>
impl<'a> PartialEq for BodyCompression<'a>
source§fn eq(&self, other: &BodyCompression<'a>) -> bool
fn eq(&self, other: &BodyCompression<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Verifiable for BodyCompression<'_>
impl Verifiable for BodyCompression<'_>
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for BodyCompression<'a>
impl<'a> StructuralPartialEq for BodyCompression<'a>
Auto Trait Implementations§
impl<'a> Freeze for BodyCompression<'a>
impl<'a> RefUnwindSafe for BodyCompression<'a>
impl<'a> Send for BodyCompression<'a>
impl<'a> Sync for BodyCompression<'a>
impl<'a> Unpin for BodyCompression<'a>
impl<'a> UnwindSafe for BodyCompression<'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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moreCreates a shared type from an unshared type.