pub struct ArrowBytesSet<O>(/* private fields */)
where
O: OffsetSizeTrait;
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> ArrowBytesSet<O>where
O: OffsetSizeTrait,
impl<O> ArrowBytesSet<O>where
O: OffsetSizeTrait,
pub fn new(output_type: OutputType) -> ArrowBytesSet<O>
Sourcepub fn take(&mut self) -> ArrowBytesSet<O>
pub fn take(&mut self) -> ArrowBytesSet<O>
Return the contents of this set and replace it with a new empty set with the same output type
Sourcepub fn into_state(self) -> Arc<dyn Array>
pub fn into_state(self) -> Arc<dyn Array>
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
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