pub struct ArrowBytesSet<O: OffsetSizeTrait>(/* private fields */);
Expand description
HashSet optimized for storing string or binary values that can produce that the final set as a GenericStringArray with minimal copies.
Implementations§
source§impl<O: OffsetSizeTrait> ArrowBytesSet<O>
impl<O: OffsetSizeTrait> ArrowBytesSet<O>
pub fn new(output_type: OutputType) -> Self
sourcepub fn into_state(self) -> ArrayRef
pub fn into_state(self) -> ArrayRef
Converts this set into a StringArray
/LargeStringArray
or
BinaryArray
/LargeBinaryArray
containing each distinct value that
was interned. This is done without copying the values.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the total number of distinct values (including nulls) seen so far
pub fn is_empty(&self) -> bool
sourcepub fn non_null_len(&self) -> usize
pub fn non_null_len(&self) -> usize
returns the total number of distinct values (not including nulls) seen so far
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for ArrowBytesSet<O>
impl<O> RefUnwindSafe for ArrowBytesSet<O>where
O: RefUnwindSafe,
impl<O> Send for ArrowBytesSet<O>
impl<O> Sync for ArrowBytesSet<O>
impl<O> Unpin for ArrowBytesSet<O>where
O: Unpin,
impl<O> UnwindSafe for ArrowBytesSet<O>where
O: UnwindSafe,
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