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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more