Struct aws_sdk_glue::input::GetPartitionsInput
source · #[non_exhaustive]pub struct GetPartitionsInput { /* private fields */ }Implementations§
source§impl GetPartitionsInput
impl GetPartitionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPartitions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPartitions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetPartitions>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetPartitionsInput.
source§impl GetPartitionsInput
impl GetPartitionsInput
sourcepub fn catalog_id(&self) -> Option<&str>
pub fn catalog_id(&self) -> Option<&str>
The ID of the Data Catalog where the partitions in question reside. If none is provided, the Amazon Web Services account ID is used by default.
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name of the catalog database where the partitions reside.
sourcepub fn table_name(&self) -> Option<&str>
pub fn table_name(&self) -> Option<&str>
The name of the partitions' table.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
An expression that filters the partitions to be returned.
The expression uses SQL syntax similar to the SQL WHERE filter clause. The SQL statement parser JSQLParser parses the expression.
Operators: The following are the operators that you can use in the Expression API call:
- =
-
Checks whether the values of the two operands are equal; if yes, then the condition becomes true.
Example: Assume 'variable a' holds 10 and 'variable b' holds 20.
(a = b) is not true.
- < >
-
Checks whether the values of two operands are equal; if the values are not equal, then the condition becomes true.
Example: (a < > b) is true.
- >
-
Checks whether the value of the left operand is greater than the value of the right operand; if yes, then the condition becomes true.
Example: (a > b) is not true.
- <
-
Checks whether the value of the left operand is less than the value of the right operand; if yes, then the condition becomes true.
Example: (a < b) is true.
- >=
-
Checks whether the value of the left operand is greater than or equal to the value of the right operand; if yes, then the condition becomes true.
Example: (a >= b) is not true.
- <=
-
Checks whether the value of the left operand is less than or equal to the value of the right operand; if yes, then the condition becomes true.
Example: (a <= b) is true.
- AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
-
Logical operators.
Supported Partition Key Types: The following are the supported partition keys.
-
string -
date -
timestamp -
int -
bigint -
long -
tinyint -
smallint -
decimal
If an type is encountered that is not valid, an exception is thrown.
The following list shows the valid operators on each type. When you define a crawler, the partitionKey type is created as a STRING, to be compatible with the catalog partitions.
Sample API Call:
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
A continuation token, if this is not the first call to retrieve these partitions.
sourcepub fn segment(&self) -> Option<&Segment>
pub fn segment(&self) -> Option<&Segment>
The segment of the table's partitions to scan in this request.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of partitions to return in a single response.
sourcepub fn exclude_column_schema(&self) -> Option<bool>
pub fn exclude_column_schema(&self) -> Option<bool>
When true, specifies not returning the partition column schema. Useful when you are interested only in other partition attributes such as partition values or location. This approach avoids the problem of a large response by not returning duplicate data.
sourcepub fn transaction_id(&self) -> Option<&str>
pub fn transaction_id(&self) -> Option<&str>
The transaction ID at which to read the partition contents.
sourcepub fn query_as_of_time(&self) -> Option<&DateTime>
pub fn query_as_of_time(&self) -> Option<&DateTime>
The time as of when to read the partition contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId.
Trait Implementations§
source§impl Clone for GetPartitionsInput
impl Clone for GetPartitionsInput
source§fn clone(&self) -> GetPartitionsInput
fn clone(&self) -> GetPartitionsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetPartitionsInput
impl Debug for GetPartitionsInput
source§impl PartialEq<GetPartitionsInput> for GetPartitionsInput
impl PartialEq<GetPartitionsInput> for GetPartitionsInput
source§fn eq(&self, other: &GetPartitionsInput) -> bool
fn eq(&self, other: &GetPartitionsInput) -> bool
self and other values to be equal, and is used
by ==.