[][src]Struct rusoto_glue::GetPartitionsRequest

pub struct GetPartitionsRequest {
    pub catalog_id: Option<String>,
    pub database_name: String,
    pub expression: Option<String>,
    pub max_results: Option<i64>,
    pub next_token: Option<String>,
    pub segment: Option<Segment>,
    pub table_name: String,
}

Fields

catalog_id: Option<String>

The ID of the Data Catalog where the partitions in question reside. If none is provided, the AWS account ID is used by default.

database_name: String

The name of the catalog database where the partitions reside.

expression: Option<String>

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 invalid type is encountered, 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:

max_results: Option<i64>

The maximum number of partitions to return in a single response.

next_token: Option<String>

A continuation token, if this is not the first call to retrieve these partitions.

segment: Option<Segment>

The segment of the table's partitions to scan in this request.

table_name: String

The name of the partitions' table.

Trait Implementations

impl Clone for GetPartitionsRequest[src]

impl Debug for GetPartitionsRequest[src]

impl Default for GetPartitionsRequest[src]

impl PartialEq<GetPartitionsRequest> for GetPartitionsRequest[src]

impl Serialize for GetPartitionsRequest[src]

impl StructuralPartialEq for GetPartitionsRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.