pub struct IndexTooWideForLiteralConstraints {
pub index_id: GlobalId,
pub index_key: Vec<MirScalarExpr>,
pub usable_subset: Vec<MirScalarExpr>,
pub literal_values: Vec<Row>,
pub index_on_id: GlobalId,
pub recommended_key: Vec<MirScalarExpr>,
}Expand description
An index could be used for some literal constraints if the index included only a subset of its columns.
Fields§
§index_id: GlobalIdThe id of the index.
index_key: Vec<MirScalarExpr>The key of the index.
usable_subset: Vec<MirScalarExpr>A subset of the index keys. If the index were only on these keys, then it could have been used for a lookup.
literal_values: Vec<Row>Literal values that we would have looked up in the index, if it were on usable_subset.
index_on_id: GlobalIdThe id of the object that the index is on.
recommended_key: Vec<MirScalarExpr>Our recommendation for what key should a new index have. Note that this might include more
columns than usable_subset.
Trait Implementations§
source§impl Clone for IndexTooWideForLiteralConstraints
impl Clone for IndexTooWideForLiteralConstraints
source§fn clone(&self) -> IndexTooWideForLiteralConstraints
fn clone(&self) -> IndexTooWideForLiteralConstraints
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl PartialEq for IndexTooWideForLiteralConstraints
impl PartialEq for IndexTooWideForLiteralConstraints
source§fn eq(&self, other: &IndexTooWideForLiteralConstraints) -> bool
fn eq(&self, other: &IndexTooWideForLiteralConstraints) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for IndexTooWideForLiteralConstraints
impl StructuralEq for IndexTooWideForLiteralConstraints
impl StructuralPartialEq for IndexTooWideForLiteralConstraints
Auto Trait Implementations§
impl RefUnwindSafe for IndexTooWideForLiteralConstraints
impl Send for IndexTooWideForLiteralConstraints
impl Sync for IndexTooWideForLiteralConstraints
impl Unpin for IndexTooWideForLiteralConstraints
impl UnwindSafe for IndexTooWideForLiteralConstraints
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Requestsource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto.