Type Alias polars_core::datatypes::BinaryOffsetChunked
source · pub type BinaryOffsetChunked = ChunkedArray<BinaryOffsetType>;
Aliased Type§
struct BinaryOffsetChunked { /* private fields */ }
Trait Implementations§
source§impl ChunkAnyValue for BinaryOffsetChunked
impl ChunkAnyValue for BinaryOffsetChunked
source§unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>
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<'_>>
fn get_any_value(&self, index: usize) -> PolarsResult<AnyValue<'_>>
Get a single value. Beware this is slow.
source§impl ChunkCast for BinaryOffsetChunked
impl ChunkCast for BinaryOffsetChunked
source§fn cast_with_options(
&self,
data_type: &DataType,
options: CastOptions
) -> PolarsResult<Series>
fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> PolarsResult<Series>
Cast a
ChunkedArray
to DataType
source§unsafe fn cast_unchecked(&self, data_type: &DataType) -> PolarsResult<Series>
unsafe fn cast_unchecked(&self, data_type: &DataType) -> PolarsResult<Series>
Does not check if the cast is a valid one and may over/underflow Read more
source§fn cast(&self, data_type: &DataType) -> PolarsResult<Series>
fn cast(&self, data_type: &DataType) -> PolarsResult<Series>
Cast a
ChunkedArray
to DataType
source§impl ChunkExpandAtIndex<BinaryOffsetType> for BinaryOffsetChunked
impl ChunkExpandAtIndex<BinaryOffsetType> for BinaryOffsetChunked
source§fn new_from_index(&self, index: usize, length: usize) -> BinaryOffsetChunked
fn new_from_index(&self, index: usize, length: usize) -> BinaryOffsetChunked
Create a new ChunkedArray filled with values at that index.
source§impl ChunkFilter<BinaryOffsetType> for BinaryOffsetChunked
impl ChunkFilter<BinaryOffsetType> for BinaryOffsetChunked
source§fn filter(&self, filter: &BooleanChunked) -> PolarsResult<BinaryOffsetChunked>
fn filter(&self, filter: &BooleanChunked) -> PolarsResult<BinaryOffsetChunked>
Filter values in the ChunkedArray with a boolean mask. Read more
source§impl<'a> ChunkFull<&'a [u8]> for BinaryOffsetChunked
impl<'a> ChunkFull<&'a [u8]> for BinaryOffsetChunked
source§impl ChunkFullNull for BinaryOffsetChunked
impl ChunkFullNull for BinaryOffsetChunked
source§impl ChunkReverse for BinaryOffsetChunked
impl ChunkReverse for BinaryOffsetChunked
source§impl ChunkShiftFill<BinaryOffsetType, Option<&[u8]>> for BinaryOffsetChunked
impl ChunkShiftFill<BinaryOffsetType, Option<&[u8]>> for BinaryOffsetChunked
source§fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&[u8]>
) -> BinaryOffsetChunked
fn shift_and_fill( &self, periods: i64, fill_value: Option<&[u8]> ) -> BinaryOffsetChunked
Shift the values by a given period and fill the parts that will be empty due to this operation
with
fill_value
.source§impl ChunkSort<BinaryOffsetType> for BinaryOffsetChunked
impl ChunkSort<BinaryOffsetType> for BinaryOffsetChunked
source§fn arg_sort_multiple(
&self,
by: &[Series],
options: &SortMultipleOptions
) -> PolarsResult<IdxCa>
fn arg_sort_multiple( &self, by: &[Series], 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.
fn sort_with(&self, options: SortOptions) -> BinaryOffsetChunked
source§fn sort(&self, descending: bool) -> BinaryOffsetChunked
fn sort(&self, descending: bool) -> BinaryOffsetChunked
Returned a sorted
ChunkedArray
.source§fn arg_sort(&self, options: SortOptions) -> IdxCa
fn arg_sort(&self, options: SortOptions) -> IdxCa
Retrieve the indexes needed to sort this array.
source§impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for BinaryOffsetChunked
impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for BinaryOffsetChunked
fn from_iter_trusted_length<I: IntoIterator<Item = Option<Ptr>>>( iter: I ) -> Self
source§impl<Ptr> FromTrustedLenIterator<Ptr> for BinaryOffsetChunkedwhere
Ptr: PolarsAsRef<[u8]>,
impl<Ptr> FromTrustedLenIterator<Ptr> for BinaryOffsetChunkedwhere
Ptr: PolarsAsRef<[u8]>,
fn from_iter_trusted_length<I: IntoIterator<Item = Ptr>>(iter: I) -> Self
source§impl IntoGroupsProxy for BinaryOffsetChunked
Available on crate feature algorithm_group_by
only.
impl IntoGroupsProxy for BinaryOffsetChunked
Available on crate feature
algorithm_group_by
only.source§fn group_tuples<'a>(
&'a self,
multithreaded: bool,
sorted: bool
) -> PolarsResult<GroupsProxy>
fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool ) -> PolarsResult<GroupsProxy>
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
impl<'a> IntoIterator for &'a BinaryOffsetChunked
§type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BinaryOffsetType> as IntoIterator>::Item> + 'a>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BinaryOffsetType> as IntoIterator>::Item> + 'a>
Which kind of iterator are we turning this into?
source§impl ValueSize for BinaryOffsetChunked
impl ValueSize for BinaryOffsetChunked
source§fn get_values_size(&self) -> usize
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
impl VecHash for BinaryOffsetChunked
source§fn vec_hash(
&self,
random_state: RandomState,
buf: &mut Vec<u64>
) -> PolarsResult<()>
fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> PolarsResult<()>
Compute the hash for all values in the array. Read more