pub struct ArrowBytesViewSet(/* private fields */);
Expand description
HashSet optimized for storing string or binary values that can produce that
the final set as a GenericBinaryViewArray
with minimal copies.
Implementations§
source§impl ArrowBytesViewSet
impl ArrowBytesViewSet
pub fn new(output_type: OutputType) -> Self
sourcepub fn take(&mut self) -> Self
pub fn take(&mut self) -> Self
Return the contents of this map and replace it with a new empty map with the same output type
sourcepub fn into_state(self) -> ArrayRef
pub fn into_state(self) -> ArrayRef
Converts this set into a StringViewArray
or BinaryViewArray
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 Freeze for ArrowBytesViewSet
impl RefUnwindSafe for ArrowBytesViewSet
impl Send for ArrowBytesViewSet
impl Sync for ArrowBytesViewSet
impl Unpin for ArrowBytesViewSet
impl UnwindSafe for ArrowBytesViewSet
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