Enum google_api_proto::google::cloud::bigquery::v2::index_unused_reason::Code
source · #[repr(i32)]pub enum Code {
Show 20 variants
Unspecified = 0,
IndexConfigNotAvailable = 1,
PendingIndexCreation = 2,
BaseTableTruncated = 3,
IndexConfigModified = 4,
TimeTravelQuery = 5,
NoPruningPower = 6,
UnindexedSearchFields = 7,
UnsupportedSearchPattern = 8,
OptimizedWithMaterializedView = 9,
SecuredByDataMasking = 11,
MismatchedTextAnalyzer = 12,
BaseTableTooSmall = 13,
BaseTableTooLarge = 14,
EstimatedPerformanceGainTooLow = 15,
NotSupportedInStandardEdition = 17,
IndexSuppressedByFunctionOption = 18,
QueryCacheHit = 19,
InternalError = 10,
OtherReason = 16,
}
Expand description
Indicates the high-level reason for the scenario when no search index was used.
Variants§
Unspecified = 0
Code not specified.
IndexConfigNotAvailable = 1
Indicates the search index configuration has not been created.
PendingIndexCreation = 2
Indicates the search index creation has not been completed.
BaseTableTruncated = 3
Indicates the base table has been truncated (rows have been removed from table with TRUNCATE TABLE statement) since the last time the search index was refreshed.
IndexConfigModified = 4
Indicates the search index configuration has been changed since the last time the search index was refreshed.
TimeTravelQuery = 5
Indicates the search query accesses data at a timestamp before the last time the search index was refreshed.
NoPruningPower = 6
Indicates the usage of search index will not contribute to any pruning improvement for the search function, e.g. when the search predicate is in a disjunction with other non-search predicates.
UnindexedSearchFields = 7
Indicates the search index does not cover all fields in the search function.
UnsupportedSearchPattern = 8
Indicates the search index does not support the given search query pattern.
OptimizedWithMaterializedView = 9
Indicates the query has been optimized by using a materialized view.
SecuredByDataMasking = 11
Indicates the query has been secured by data masking, and thus search indexes are not applicable.
MismatchedTextAnalyzer = 12
Indicates that the search index and the search function call do not have the same text analyzer.
BaseTableTooSmall = 13
Indicates the base table is too small (below a certain threshold). The index does not provide noticeable search performance gains when the base table is too small.
BaseTableTooLarge = 14
Indicates that the total size of indexed base tables in your organization exceeds your region’s limit and the index is not used in the query. To index larger base tables, you can use> your own reservation for index-management jobs.
EstimatedPerformanceGainTooLow = 15
Indicates that the estimated performance gain from using the search index is too low for the given search query.
NotSupportedInStandardEdition = 17
Indicates that search indexes can not be used for search query with STANDARD edition.
IndexSuppressedByFunctionOption = 18
Indicates that an option in the search function that cannot make use of the index has been selected.
QueryCacheHit = 19
Indicates that the query was cached, and thus the search index was not used.
InternalError = 10
Indicates an internal error that causes the search index to be unused.
OtherReason = 16
Indicates that the reason search indexes cannot be used in the query is not covered by any of the other IndexUnusedReason options.
Implementations§
source§impl Code
impl Code
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Code
impl Ord for Code
source§impl PartialEq for Code
impl PartialEq for Code
source§impl PartialOrd for Code
impl PartialOrd for Code
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Code
impl TryFrom<i32> for Code
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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> 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