Struct BinaryNameSpace
pub struct BinaryNameSpace(/* private fields */);Expand description
Specialized expressions for Series of DataType::Binary.
Implementations§
§impl BinaryNameSpace
impl BinaryNameSpace
pub fn contains_literal(self, pat: Expr) -> Expr
pub fn contains_literal(self, pat: Expr) -> Expr
Check if a binary value contains a literal binary.
pub fn find(self, pat: Expr) -> Expr
pub fn find(self, pat: Expr) -> Expr
Find the byte offset of the first occurrence of a literal binary.
pub fn find_many(
self,
patterns: Expr,
ascii_case_insensitive: bool,
overlapping: bool,
leftmost: bool,
) -> Expr
Available on crate feature find_many only.
pub fn find_many( self, patterns: Expr, ascii_case_insensitive: bool, overlapping: bool, leftmost: bool, ) -> Expr
find_many only.Uses aho-corasick to find the byte offsets of many patterns.
§Arguments
patterns: an expression that evaluates to a List of Binary or Stringascii_case_insensitive: Enable ASCII-aware case-insensitive matching. When this option is enabled, searching will be performed without respect to case for ASCII letters (a-z and A-Z) only.overlapping: Whether matches may overlap.
pub fn starts_with(self, sub: Expr) -> Expr
pub fn starts_with(self, sub: Expr) -> Expr
Check if a binary value starts with the given sequence.
pub fn size_bytes(self) -> Expr
pub fn size_bytes(self) -> Expr
Return the size (number of bytes) in each element.
pub fn hex_decode(self, strict: bool) -> Expr
Available on crate feature
binary_encoding only.pub fn hex_encode(self) -> Expr
Available on crate feature
binary_encoding only.pub fn base64_decode(self, strict: bool) -> Expr
Available on crate feature
binary_encoding only.pub fn base64_encode(self) -> Expr
Available on crate feature
binary_encoding only.pub fn reinterpret( self, to_type: impl Into<DataTypeExpr>, is_little_endian: bool, ) -> Expr
Available on crate feature
binary_encoding only.pub fn slice(self, offset: Expr, length: Expr) -> Expr
pub fn head(self, n: Expr) -> Expr
pub fn tail(self, n: Expr) -> Expr
pub fn get(self, index: Expr, null_on_oob: bool) -> Expr
Auto Trait Implementations§
impl !Freeze for BinaryNameSpace
impl !RefUnwindSafe for BinaryNameSpace
impl !UnwindSafe for BinaryNameSpace
impl Send for BinaryNameSpace
impl Sync for BinaryNameSpace
impl Unpin for BinaryNameSpace
impl UnsafeUnpin for BinaryNameSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more