pub struct ScanParameters {
pub columns: Vec<String>,
pub on_missing_columns: i32,
pub filter: Option<String>,
pub limit_offset: Option<i64>,
pub limit_len: Option<i64>,
pub order_by: Option<ScanParametersOrderClause>,
pub explain_plan: bool,
pub explain_filter: bool,
}
Expand description
Generic parameters that will influence the behavior of the Lance scanner.
TODO(zehiko, cmc): This should be available for every endpoint that queries data in one way or another.
Fields§
§columns: Vec<String>
List of columns to project. If empty, all columns will be projected.
on_missing_columns: i32
§filter: Option<String>
An arbitrary filter expression that will be passed to the Lance scanner as-is.
scanner.filter(filter)
limit_offset: Option<i64>
An arbitrary offset that will be passed to the Lance scanner as-is.
scanner.limit(_, limit_offset)
limit_len: Option<i64>
An arbitrary limit that will be passed to the Lance scanner as-is.
scanner.limit(limit_len, _)
order_by: Option<ScanParametersOrderClause>
An arbitrary order clause that will be passed to the Lance scanner as-is.
scanner.order_by(…)
explain_plan: bool
If set, the output of scanner.explain_plan
will be dumped to the server’s log.
explain_filter: bool
If set, the final scanner.filter
will be dumped to the server’s log.
Implementations§
Source§impl ScanParameters
impl ScanParameters
Sourcepub fn on_missing_columns(&self) -> IfMissingBehavior
pub fn on_missing_columns(&self) -> IfMissingBehavior
Returns the enum value of on_missing_columns
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_on_missing_columns(&mut self, value: IfMissingBehavior)
pub fn set_on_missing_columns(&mut self, value: IfMissingBehavior)
Sets on_missing_columns
to the provided enum value.
Sourcepub fn filter(&self) -> &str
pub fn filter(&self) -> &str
Returns the value of filter
, or the default value if filter
is unset.
Sourcepub fn limit_offset(&self) -> i64
pub fn limit_offset(&self) -> i64
Returns the value of limit_offset
, or the default value if limit_offset
is unset.
Trait Implementations§
Source§impl Clone for ScanParameters
impl Clone for ScanParameters
Source§fn clone(&self) -> ScanParameters
fn clone(&self) -> ScanParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScanParameters
impl Debug for ScanParameters
Source§impl Default for ScanParameters
impl Default for ScanParameters
Source§impl From<ScanParameters> for ScanParameters
impl From<ScanParameters> for ScanParameters
Source§fn from(value: ScanParameters) -> Self
fn from(value: ScanParameters) -> Self
Source§impl Message for ScanParameters
impl Message for ScanParameters
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for ScanParameters
impl Name for ScanParameters
Source§const NAME: &'static str = "ScanParameters"
const NAME: &'static str = "ScanParameters"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "rerun.common.v1alpha1"
const PACKAGE: &'static str = "rerun.common.v1alpha1"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ScanParameters
impl PartialEq for ScanParameters
Source§impl TryFrom<ScanParameters> for ScanParameters
impl TryFrom<ScanParameters> for ScanParameters
impl StructuralPartialEq for ScanParameters
Auto Trait Implementations§
impl Freeze for ScanParameters
impl RefUnwindSafe for ScanParameters
impl Send for ScanParameters
impl Sync for ScanParameters
impl Unpin for ScanParameters
impl UnwindSafe for ScanParameters
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request