Expand description
Interleave elements from multiple arrays
Re-exportsΒ§
use crate::concat::concat;πuse crate::dictionary::merge_dictionary_values;πuse crate::dictionary::should_merge_dictionary_values;πuse arrow_array::ListLikeArray;πuse arrow_array::builder::BooleanBufferBuilder;πuse arrow_array::builder::PrimitiveBuilder;πuse arrow_array::cast::AsArray;πuse arrow_buffer::bit_mask::set_bits;πuse arrow_buffer::bit_util;π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_data::ByteView;πuse arrow_data::transform::MutableArrayData;πuse arrow_schema::ArrowError;πuse arrow_schema::DataType;πuse arrow_schema::FieldRef;πuse arrow_schema::Fields;πuse std::collections::BTreeMap;πuse std::sync::Arc;πuse arrow_array::types::*;πuse arrow_array::*;π
MacrosΒ§
- dict_
helper π - primitive_
helper π
StructsΒ§
- Interleave π
- Common functionality for interleaving arrays
FunctionsΒ§
- interleave
- Takes elements by index from a list of [
Array], creating a new [Array] from those values. - interleave_
boolean π - interleave_
bytes π - interleave_
dictionaries π - interleave_
fallback π - Fallback implementation of interleave using [
MutableArrayData] - interleave_
fallback_ πdictionary - Fallback implementation for interleaving dictionaries when it was determined that the dictionary values should not be merged. This implementation concatenates the value slices and recomputes the resulting dictionary keys.
- interleave_
fixed_ πsize_ list - interleave_
list π - interleave_
list_ πlike_ child - Interleave child values for non-primitive child types, shared by List and FixedSizeList.
- interleave_
list_ πlike_ primitive_ child - interleave_
list_ πview - interleave_
list_ πview_ concat - Concat backing arrays: concatenates all source value arrays and adjusts offsets. Preserves within-source element sharing.
- interleave_
list_ πview_ copy - Per-row copy: copies each selected rowβs child elements into a new flat array.
- interleave_
map π - interleave_
primitive π - interleave_
record_ batch - Interleave rows by index from multiple [
RecordBatch] instances and return a new [RecordBatch]. - interleave_
run_ πend - Specialized
interleavefor [RunArray]. - interleave_
struct π - interleave_
views π - push_
buffer π - Returns the index of
bufferinbuffers, adding it if not already present.