Struct aws_sdk_glue::types::PartitionInput
source · #[non_exhaustive]pub struct PartitionInput {
pub values: Option<Vec<String>>,
pub last_access_time: Option<DateTime>,
pub storage_descriptor: Option<StorageDescriptor>,
pub parameters: Option<HashMap<String, String>>,
pub last_analyzed_time: Option<DateTime>,
}
Expand description
The structure used to create and update a partition.
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.values: Option<Vec<String>>
The values of the partition. Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
last_access_time: Option<DateTime>
The last time at which the partition was accessed.
storage_descriptor: Option<StorageDescriptor>
Provides information about the physical location where the partition is stored.
parameters: Option<HashMap<String, String>>
These key-value pairs define partition parameters.
last_analyzed_time: Option<DateTime>
The last time at which column statistics were computed for this partition.
Implementations§
source§impl PartitionInput
impl PartitionInput
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The values of the partition. Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
sourcepub fn last_access_time(&self) -> Option<&DateTime>
pub fn last_access_time(&self) -> Option<&DateTime>
The last time at which the partition was accessed.
sourcepub fn storage_descriptor(&self) -> Option<&StorageDescriptor>
pub fn storage_descriptor(&self) -> Option<&StorageDescriptor>
Provides information about the physical location where the partition is stored.
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn parameters(&self) -> Option<&HashMap<String, String>>
These key-value pairs define partition parameters.
sourcepub fn last_analyzed_time(&self) -> Option<&DateTime>
pub fn last_analyzed_time(&self) -> Option<&DateTime>
The last time at which column statistics were computed for this partition.
source§impl PartitionInput
impl PartitionInput
sourcepub fn builder() -> PartitionInputBuilder
pub fn builder() -> PartitionInputBuilder
Creates a new builder-style object to manufacture PartitionInput
.
Trait Implementations§
source§impl Clone for PartitionInput
impl Clone for PartitionInput
source§fn clone(&self) -> PartitionInput
fn clone(&self) -> PartitionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionInput
impl Debug for PartitionInput
source§impl PartialEq for PartitionInput
impl PartialEq for PartitionInput
source§fn eq(&self, other: &PartitionInput) -> bool
fn eq(&self, other: &PartitionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartitionInput
Auto Trait Implementations§
impl Freeze for PartitionInput
impl RefUnwindSafe for PartitionInput
impl Send for PartitionInput
impl Sync for PartitionInput
impl Unpin for PartitionInput
impl UnwindSafe for PartitionInput
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> 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