BinaryOffsetChunked

Type Alias BinaryOffsetChunked 

Source
pub type BinaryOffsetChunked = ChunkedArray<BinaryOffsetType>;

Aliased Type§

pub struct BinaryOffsetChunked { /* private fields */ }

Trait Implementations§

Source§

impl ChunkAnyValue for BinaryOffsetChunked

Source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Source§

fn get_any_value(&self, index: usize) -> PolarsResult<AnyValue<'_>>

Get a single value. Beware this is slow.
Source§

impl ChunkAnyValueBypassValidity for BinaryOffsetChunked

Source§

unsafe fn get_any_value_bypass_validity(&self, index: usize) -> AnyValue<'_>

Get a single value bypassing the validity map. Beware this is slow. Read more
Source§

impl ChunkCast for BinaryOffsetChunked

Source§

fn cast_with_options( &self, dtype: &DataType, options: CastOptions, ) -> PolarsResult<Series>

Source§

unsafe fn cast_unchecked(&self, dtype: &DataType) -> PolarsResult<Series>

Does not check if the cast is a valid one and may over/underflow Read more
Source§

fn cast(&self, dtype: &DataType) -> PolarsResult<Series>

Source§

impl ChunkCompareEq<&[u8]> for BinaryOffsetChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn equal(&self, rhs: &[u8]) -> BooleanChunked

Check for equality.
Source§

fn equal_missing(&self, rhs: &[u8]) -> BooleanChunked

Check for equality where None == None.
Source§

fn not_equal(&self, rhs: &[u8]) -> BooleanChunked

Check for inequality.
Source§

fn not_equal_missing(&self, rhs: &[u8]) -> BooleanChunked

Check for inequality where None == None.
Source§

impl ChunkCompareEq<&ChunkedArray<BinaryOffsetType>> for BinaryOffsetChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn equal(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Check for equality.
Source§

fn equal_missing(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Check for equality where None == None.
Source§

fn not_equal(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Check for inequality.
Source§

fn not_equal_missing(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Check for inequality where None == None.
Source§

impl ChunkCompareIneq<&[u8]> for BinaryOffsetChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn gt(&self, rhs: &[u8]) -> BooleanChunked

Greater than comparison.
Source§

fn gt_eq(&self, rhs: &[u8]) -> BooleanChunked

Greater than or equal comparison.
Source§

fn lt(&self, rhs: &[u8]) -> BooleanChunked

Less than comparison.
Source§

fn lt_eq(&self, rhs: &[u8]) -> BooleanChunked

Less than or equal comparison
Source§

impl ChunkCompareIneq<&ChunkedArray<BinaryOffsetType>> for BinaryOffsetChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn lt(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Less than comparison.
Source§

fn lt_eq(&self, rhs: &BinaryOffsetChunked) -> BooleanChunked

Less than or equal comparison
Source§

fn gt(&self, rhs: &Self) -> BooleanChunked

Greater than comparison.
Source§

fn gt_eq(&self, rhs: &Self) -> BooleanChunked

Greater than or equal comparison.
Source§

impl ChunkExpandAtIndex<BinaryOffsetType> for BinaryOffsetChunked

Source§

fn new_from_index(&self, index: usize, length: usize) -> BinaryOffsetChunked

Create a new ChunkedArray filled with values at that index.
Source§

impl<'a> ChunkFull<&'a [u8]> for BinaryOffsetChunked

Source§

fn full(name: PlSmallStr, value: &'a [u8], length: usize) -> Self

Create a ChunkedArray with a single value.
Source§

impl ChunkFullNull for BinaryOffsetChunked

Source§

fn full_null(name: PlSmallStr, length: usize) -> Self

Source§

impl ChunkReverse for BinaryOffsetChunked

Source§

fn reverse(&self) -> Self

Return a reversed version of this array.
Source§

impl ChunkSort<BinaryOffsetType> for BinaryOffsetChunked

Source§

fn arg_sort_multiple( &self, by: &[Column], options: &SortMultipleOptions, ) -> PolarsResult<IdxCa>

§Panics

This function is very opinionated. On the implementation of ChunkedArray<T> for numeric types, we assume that all numeric Series are of the same type.

In this case we assume that all numeric Series are f64 types. The caller needs to uphold this contract. If not, it will panic.

Source§

fn sort_with(&self, options: SortOptions) -> BinaryOffsetChunked

Source§

fn sort(&self, descending: bool) -> BinaryOffsetChunked

Returned a sorted ChunkedArray.
Source§

fn arg_sort(&self, options: SortOptions) -> IdxCa

Retrieve the indexes needed to sort this array.
Source§

impl ChunkUnique for BinaryOffsetChunked

Available on crate feature algorithm_group_by only.
Source§

fn unique(&self) -> PolarsResult<Self>

Get unique values of a ChunkedArray
Source§

fn arg_unique(&self) -> PolarsResult<IdxCa>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
Source§

fn n_unique(&self) -> PolarsResult<usize>

Number of unique values in the ChunkedArray
Source§

fn unique_id(&self) -> PolarsResult<(IdxSize, Vec<IdxSize>)>

Get dense ids for each unique value. Read more
Source§

impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for BinaryOffsetChunked
where Ptr: AsRef<[u8]>,

Source§

fn from_iter_trusted_length<I: IntoIterator<Item = Option<Ptr>>>( iter: I, ) -> Self

Source§

impl<Ptr> FromTrustedLenIterator<Ptr> for BinaryOffsetChunked
where Ptr: PolarsAsRef<[u8]>,

Source§

fn from_iter_trusted_length<I: IntoIterator<Item = Ptr>>(iter: I) -> Self

Source§

impl IntoGroupsType for BinaryOffsetChunked

Available on crate feature algorithm_group_by only.
Source§

fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool, ) -> PolarsResult<GroupsType>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
Source§

impl<'a> IntoIterator for &'a BinaryOffsetChunked

Source§

type Item = Option<&'a [u8]>

The type of the elements being iterated over.
Source§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BinaryOffsetType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl ValueSize for BinaryOffsetChunked

Source§

fn get_values_size(&self) -> usize

Get the values size that is still “visible” to the underlying array. E.g. take the offsets into account.
Source§

impl VecHash for BinaryOffsetChunked

Source§

fn vec_hash( &self, random_state: PlSeedableRandomStateQuality, buf: &mut Vec<u64>, ) -> PolarsResult<()>

Compute the hash for all values in the array.
Source§

fn vec_hash_combine( &self, random_state: PlSeedableRandomStateQuality, hashes: &mut [u64], ) -> PolarsResult<()>