arrow_select::filter

Struct FilterBytes

Source
struct FilterBytes<'a, OffsetSize> {
    src_offsets: &'a [OffsetSize],
    src_values: &'a [u8],
    dst_offsets: Vec<OffsetSize>,
    dst_values: Vec<u8>,
    cur_offset: OffsetSize,
}
Expand description

FilterBytes is created from a source [GenericByteArray] and can be used to build a new [GenericByteArray] by copying values from the source

TODO(raphael): Could this be used for the take kernel as well?

Fields§

§src_offsets: &'a [OffsetSize]§src_values: &'a [u8]§dst_offsets: Vec<OffsetSize>§dst_values: Vec<u8>§cur_offset: OffsetSize

Implementations§

Source§

impl<'a, OffsetSize> FilterBytes<'a, OffsetSize>
where OffsetSize: OffsetSizeTrait,

Source

fn new<T>(capacity: usize, array: &'a GenericByteArray<T>) -> Self
where T: ByteArrayType<Offset = OffsetSize>,

Source

fn get_value_offset(&self, idx: usize) -> usize

Returns the byte offset at idx

Source

fn get_value_range(&self, idx: usize) -> (usize, usize, OffsetSize)

Returns the start and end of the value at index idx along with its length

Source

fn extend_idx(&mut self, iter: impl Iterator<Item = usize>)

Extends the in-progress array by the indexes in the provided iterator

Source

fn extend_slices(&mut self, iter: impl Iterator<Item = (usize, usize)>)

Extends the in-progress array by the ranges in the provided iterator

Auto Trait Implementations§

§

impl<'a, OffsetSize> Freeze for FilterBytes<'a, OffsetSize>
where OffsetSize: Freeze,

§

impl<'a, OffsetSize> RefUnwindSafe for FilterBytes<'a, OffsetSize>
where OffsetSize: RefUnwindSafe,

§

impl<'a, OffsetSize> Send for FilterBytes<'a, OffsetSize>
where OffsetSize: Send + Sync,

§

impl<'a, OffsetSize> Sync for FilterBytes<'a, OffsetSize>
where OffsetSize: Sync,

§

impl<'a, OffsetSize> Unpin for FilterBytes<'a, OffsetSize>
where OffsetSize: Unpin,

§

impl<'a, OffsetSize> UnwindSafe for FilterBytes<'a, OffsetSize>
where OffsetSize: UnwindSafe + RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,