BinaryNameSpaceImpl

Trait BinaryNameSpaceImpl 

Source
pub trait BinaryNameSpaceImpl: AsBinary {
    // Provided methods
    fn bin_slice(
        &self,
        offset: &Column,
        length: &Column,
    ) -> PolarsResult<BinaryChunked> { ... }
    fn bin_head(&self, n: &Column) -> PolarsResult<BinaryChunked> { ... }
    fn bin_tail(&self, n: &Column) -> PolarsResult<BinaryChunked> { ... }
    fn contains(&self, lit: &[u8]) -> BooleanChunked { ... }
    fn contains_chunked(
        &self,
        lit: &BinaryChunked,
    ) -> PolarsResult<BooleanChunked> { ... }
    fn ends_with(&self, sub: &[u8]) -> BooleanChunked { ... }
    fn starts_with(&self, sub: &[u8]) -> BooleanChunked { ... }
    fn starts_with_chunked(
        &self,
        prefix: &BinaryChunked,
    ) -> PolarsResult<BooleanChunked> { ... }
    fn ends_with_chunked(
        &self,
        suffix: &BinaryChunked,
    ) -> PolarsResult<BooleanChunked> { ... }
    fn size_bytes(&self) -> UInt32Chunked { ... }
}

Provided Methods§

Source

fn bin_slice( &self, offset: &Column, length: &Column, ) -> PolarsResult<BinaryChunked>

Slice the binary values.

Determines a slice starting from offset and with length length of each of the elements. offset can be negative, in which case the start counts from the end of the bytes.

Source

fn bin_head(&self, n: &Column) -> PolarsResult<BinaryChunked>

Slice the first n bytes of the binary value.

Determines a slice starting at the beginning of the binary data up to offset n of each element. n can be negative, in which case the slice ends n bytes from the end.

Source

fn bin_tail(&self, n: &Column) -> PolarsResult<BinaryChunked>

Slice the last n bytes of the binary value.

Determines a slice starting at offset n of each element. n can be negative, in which case the slice begins n bytes from the start.

Source

fn contains(&self, lit: &[u8]) -> BooleanChunked

Check if binary contains given literal

Source

fn contains_chunked(&self, lit: &BinaryChunked) -> PolarsResult<BooleanChunked>

Source

fn ends_with(&self, sub: &[u8]) -> BooleanChunked

Check if strings ends with a substring

Source

fn starts_with(&self, sub: &[u8]) -> BooleanChunked

Check if strings starts with a substring

Source

fn starts_with_chunked( &self, prefix: &BinaryChunked, ) -> PolarsResult<BooleanChunked>

Source

fn ends_with_chunked( &self, suffix: &BinaryChunked, ) -> PolarsResult<BooleanChunked>

Source

fn size_bytes(&self) -> UInt32Chunked

Get the size of the binary values in bytes.

Implementations on Foreign Types§

Source§

impl BinaryNameSpaceImpl for BinaryChunked

Implementors§