pub struct FilterExpression(pub Bytes);
Expand description
A filter expression to apply to the data
The core decoders do not currently take advantage of filtering in any way. In order to maintain the abstraction we represent filters as an arbitrary byte sequence.
We recommend that encodings use Substrait for filters.
Tuple Fields§
§0: Bytes
Implementations§
Source§impl FilterExpression
impl FilterExpression
Sourcepub fn no_filter() -> Self
pub fn no_filter() -> Self
Create a filter expression that does not filter any data
This is currently represented by an empty byte array. Encoders that are “filter aware” should make sure they handle this case.
Sourcepub fn is_noop(&self) -> bool
pub fn is_noop(&self) -> bool
Returns true if the filter is the same as the Self::no_filter
filter
Auto Trait Implementations§
impl !Freeze for FilterExpression
impl RefUnwindSafe for FilterExpression
impl Send for FilterExpression
impl Sync for FilterExpression
impl Unpin for FilterExpression
impl UnwindSafe for FilterExpression
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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