pub struct ScanArgs<'a> { /* private fields */ }Expand description
Arguments for scanning a table with TableProvider::scan_with_args.
Implementations§
Source§impl<'a> ScanArgs<'a>
impl<'a> ScanArgs<'a>
Sourcepub fn with_projection(self, projection: Option<&'a [usize]>) -> ScanArgs<'a>
pub fn with_projection(self, projection: Option<&'a [usize]>) -> ScanArgs<'a>
Set the column projection for the scan.
The projection is a list of column indices from TableProvider::schema
that should be included in the scan results. If None, all columns are included.
§Arguments
projection- Optional slice of column indices to project
Sourcepub fn projection(&self) -> Option<&'a [usize]>
pub fn projection(&self) -> Option<&'a [usize]>
Get the column projection for the scan.
Returns a reference to the projection column indices, or None if
no projection was specified (meaning all columns should be included).
Sourcepub fn with_filters(self, filters: Option<&'a [Expr]>) -> ScanArgs<'a>
pub fn with_filters(self, filters: Option<&'a [Expr]>) -> ScanArgs<'a>
Set the filter expressions for the scan.
Filters are boolean expressions that should be evaluated during the scan
to reduce the number of rows returned. All expressions are combined with AND logic.
Whether filters are actually pushed down depends on TableProvider::supports_filters_pushdown.
§Arguments
filters- Optional slice of filter expressions
Sourcepub fn filters(&self) -> Option<&'a [Expr]>
pub fn filters(&self) -> Option<&'a [Expr]>
Get the filter expressions for the scan.
Returns a reference to the filter expressions, or None if no filters were specified.
Sourcepub fn with_limit(self, limit: Option<usize>) -> ScanArgs<'a>
pub fn with_limit(self, limit: Option<usize>) -> ScanArgs<'a>
Set the maximum number of rows to return from the scan.
If specified, the scan should return at most this many rows. This is typically
used to optimize queries with LIMIT clauses.
§Arguments
limit- Optional maximum number of rows to return
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScanArgs<'a>
impl<'a> !UnwindSafe for ScanArgs<'a>
impl<'a> Freeze for ScanArgs<'a>
impl<'a> Send for ScanArgs<'a>
impl<'a> Sync for ScanArgs<'a>
impl<'a> Unpin for ScanArgs<'a>
impl<'a> UnsafeUnpin for ScanArgs<'a>
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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