Expand description
zip: Combine values from two arrays based on boolean mask
Re-exportsΒ§
use crate::filter::SlicesIterator;πuse crate::filter::prep_null_mask_filter;πuse arrow_array::cast::AsArray;πuse arrow_array::types::BinaryType;πuse arrow_array::types::BinaryViewType;πuse arrow_array::types::ByteArrayType;πuse arrow_array::types::ByteViewType;πuse arrow_array::types::LargeBinaryType;πuse arrow_array::types::LargeUtf8Type;πuse arrow_array::types::StringViewType;πuse arrow_array::types::Utf8Type;πuse arrow_buffer::ArrowNativeType;πuse arrow_buffer::BooleanBuffer;πuse arrow_buffer::Buffer;πuse arrow_buffer::MutableBuffer;πuse arrow_buffer::NullBuffer;πuse arrow_buffer::OffsetBuffer;πuse arrow_buffer::ScalarBuffer;πuse arrow_buffer::ToByteSlice;πuse arrow_data::transform::MutableArrayData;πuse arrow_data::ArrayData;πuse arrow_data::ByteView;πuse arrow_data::MAX_INLINE_VIEW_LEN;πuse arrow_schema::ArrowError;πuse arrow_schema::DataType;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::fmt::Formatter;πuse std::hash::Hash;πuse std::hash::Hash;πuse std::marker::PhantomData;πuse std::ops::BitAnd;πuse std::ops::BitOr;πuse std::ops::Not;πuse std::sync::Arc;πuse std::sync::OnceLock;πuse arrow_array::*;π
MacrosΒ§
- blend_
lane π
StructsΒ§
- Byte
View πScalar Impl - Bytes
Scalar πImpl - Fallback
Impl π - Primitive
Scalar πImpl - Scalar
Zipper - Zipper for 2 scalars
StaticsΒ§
- EMPTY_
ARC π
TraitsΒ§
- Blend
Lane π - An integer lane that
blendselects with. - ZipImpl π
- Impl for creating output array based on a mask
FunctionsΒ§
- blend π
- The values of
arraywherefrom_arrayis set and the scalarβs value elsewhere. Each value is read asKintegersU, so a 16 or 32 byte value is 2 or 4 lanes ofi64under one mask.Noneif either values buffer is not aligned toU. - count_
true_ πruns - empty_
arc_ πbuffers - interleave_
arrays π - lane_
masks π - For each bit of
word, ani32with all bits set if it is set, else clear. - maybe_
prep_ πnull_ mask_ filter - should_
use_ πinterleave - zip
- Zip two arrays by some boolean mask.
- zip_
impl π - zip_
primitive_ πwith_ scalar zipof a primitivearraywith ascalaron the other side, orNonefor the types it does not handle.scalar_is_truthysays which side the scalar is on.