pub trait BinaryNameSpaceImpl: AsBinary {
// Provided methods
fn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType> { ... }
fn contains_chunked(
&self,
lit: &ChunkedArray<BinaryType>,
) -> ChunkedArray<BooleanType> { ... }
fn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType> { ... }
fn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType> { ... }
fn starts_with_chunked(
&self,
prefix: &ChunkedArray<BinaryType>,
) -> ChunkedArray<BooleanType> { ... }
fn ends_with_chunked(
&self,
suffix: &ChunkedArray<BinaryType>,
) -> ChunkedArray<BooleanType> { ... }
fn size_bytes(&self) -> ChunkedArray<UInt32Type> { ... }
}
Available on crate feature
polars-ops
only.Provided Methods§
Sourcefn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType>
fn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType>
Check if binary contains given literal
fn contains_chunked( &self, lit: &ChunkedArray<BinaryType>, ) -> ChunkedArray<BooleanType>
Sourcefn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>
fn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>
Check if strings ends with a substring
Sourcefn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>
fn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>
Check if strings starts with a substring
fn starts_with_chunked( &self, prefix: &ChunkedArray<BinaryType>, ) -> ChunkedArray<BooleanType>
fn ends_with_chunked( &self, suffix: &ChunkedArray<BinaryType>, ) -> ChunkedArray<BooleanType>
Sourcefn size_bytes(&self) -> ChunkedArray<UInt32Type>
fn size_bytes(&self) -> ChunkedArray<UInt32Type>
Get the size of the binary values in bytes.