BinaryNameSpaceImpl

Trait BinaryNameSpaceImpl 

Source
pub trait BinaryNameSpaceImpl: AsBinary {
Show 13 methods // Provided methods fn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType> { ... } fn contains_chunked( &self, lit: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType> { ... } fn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType> { ... } fn starts_with_chunked( &self, prefix: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn ends_with_chunked( &self, suffix: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError> { ... } fn size_bytes(&self) -> ChunkedArray<UInt32Type> { ... } fn hex_decode( &self, strict: bool, ) -> Result<ChunkedArray<BinaryType>, PolarsError> { ... } fn hex_encode(&self) -> Series { ... } fn base64_decode( &self, strict: bool, ) -> Result<ChunkedArray<BinaryType>, PolarsError> { ... } fn base64_encode(&self) -> Series { ... } fn reinterpret( &self, dtype: &DataType, is_little_endian: bool, ) -> Result<Series, PolarsError> { ... } fn _reinterpret_inner( &self, dtype: &DataType, is_little_endian: bool, ) -> Result<Vec<Box<dyn Array>>, PolarsError> { ... }
}
Available on crate feature polars-ops only.

Provided Methods§

Source

fn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType>

Check if binary contains given literal

Source

fn contains_chunked( &self, lit: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Source

fn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>

Check if strings ends with a substring

Source

fn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>

Check if strings starts with a substring

Source

fn starts_with_chunked( &self, prefix: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Source

fn ends_with_chunked( &self, suffix: &ChunkedArray<BinaryType>, ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Source

fn size_bytes(&self) -> ChunkedArray<UInt32Type>

Get the size of the binary values in bytes.

Source

fn hex_decode( &self, strict: bool, ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Source

fn hex_encode(&self) -> Series

Source

fn base64_decode( &self, strict: bool, ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Source

fn base64_encode(&self) -> Series

Source

fn reinterpret( &self, dtype: &DataType, is_little_endian: bool, ) -> Result<Series, PolarsError>

Source

fn _reinterpret_inner( &self, dtype: &DataType, is_little_endian: bool, ) -> Result<Vec<Box<dyn Array>>, PolarsError>

Implementors§