Struct aws_sdk_glue::types::PartitionIndexDescriptor
source · #[non_exhaustive]pub struct PartitionIndexDescriptor {
pub index_name: String,
pub keys: Vec<KeySchemaElement>,
pub index_status: PartitionIndexStatus,
pub backfill_errors: Option<Vec<BackfillError>>,
}
Expand description
A descriptor for a partition index in a table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.index_name: String
The name of the partition index.
keys: Vec<KeySchemaElement>
A list of one or more keys, as KeySchemaElement
structures, for the partition index.
index_status: PartitionIndexStatus
The status of the partition index.
The possible statuses are:
-
CREATING: The index is being created. When an index is in a CREATING state, the index or its table cannot be deleted.
-
ACTIVE: The index creation succeeds.
-
FAILED: The index creation fails.
-
DELETING: The index is deleted from the list of indexes.
backfill_errors: Option<Vec<BackfillError>>
A list of errors that can occur when registering partition indexes for an existing table.
Implementations§
source§impl PartitionIndexDescriptor
impl PartitionIndexDescriptor
sourcepub fn index_name(&self) -> &str
pub fn index_name(&self) -> &str
The name of the partition index.
sourcepub fn keys(&self) -> &[KeySchemaElement]
pub fn keys(&self) -> &[KeySchemaElement]
A list of one or more keys, as KeySchemaElement
structures, for the partition index.
sourcepub fn index_status(&self) -> &PartitionIndexStatus
pub fn index_status(&self) -> &PartitionIndexStatus
The status of the partition index.
The possible statuses are:
-
CREATING: The index is being created. When an index is in a CREATING state, the index or its table cannot be deleted.
-
ACTIVE: The index creation succeeds.
-
FAILED: The index creation fails.
-
DELETING: The index is deleted from the list of indexes.
sourcepub fn backfill_errors(&self) -> &[BackfillError]
pub fn backfill_errors(&self) -> &[BackfillError]
A list of errors that can occur when registering partition indexes for an existing table.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .backfill_errors.is_none()
.
source§impl PartitionIndexDescriptor
impl PartitionIndexDescriptor
sourcepub fn builder() -> PartitionIndexDescriptorBuilder
pub fn builder() -> PartitionIndexDescriptorBuilder
Creates a new builder-style object to manufacture PartitionIndexDescriptor
.
Trait Implementations§
source§impl Clone for PartitionIndexDescriptor
impl Clone for PartitionIndexDescriptor
source§fn clone(&self) -> PartitionIndexDescriptor
fn clone(&self) -> PartitionIndexDescriptor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionIndexDescriptor
impl Debug for PartitionIndexDescriptor
source§impl PartialEq for PartitionIndexDescriptor
impl PartialEq for PartitionIndexDescriptor
source§fn eq(&self, other: &PartitionIndexDescriptor) -> bool
fn eq(&self, other: &PartitionIndexDescriptor) -> bool
self
and other
values to be equal, and is used
by ==
.