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: BytesImplementations§
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