AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GetPartitionsInput

import "github.com/aws/aws-sdk-go/service/glue"

type GetPartitionsInput struct { CatalogId *string `min:"1" type:"string"` DatabaseName *string `min:"1" type:"string" required:"true"` Expression *string `type:"string"` MaxResults *int64 `min:"1" type:"integer"` NextToken *string `type:"string"` Segment *Segment `type:"structure"` TableName *string `min:"1" type:"string" required:"true"` }

CatalogId

Type: *string

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

DatabaseName

Type: *string

The name of the catalog database where the partitions reside.

DatabaseName is a required field

Expression

Type: *string

An expression filtering the partitions to be returned.

The expression uses SQL syntax similar to the SQL WHERE filter clause. The SQL statement parser JSQLParser (http://jsqlparser.sourceforge.net/home.php) parses the expression.

Operators: The following are the operators that you can use in the Expression API call:

=Checks if the values of the two operands are equal or not; if yes, then the condition becomes true.

Example: Assume 'variable a' holds 10 and 'variable b' holds 20.

(a = b) is not true.

< >Checks if the values of two operands are equal or not; if the values are not equal, then the condition becomes true.

Example: (a < > b) is true.

>Checks if 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 if 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 if 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 if 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 NULLLogical operators.

Supported Partition Key Types: The following are the 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:

MaxResults

Type: *int64

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

NextToken

Type: *string

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

Segment

Defines a non-overlapping region of a table's partitions, allowing multiple requests to be executed in parallel.

TableName

Type: *string

The name of the partitions' table.

TableName is a required field

Method

GoString

func (s GetPartitionsInput) GoString() string

GoString returns the string representation

SetCatalogId

func (s *GetPartitionsInput) SetCatalogId(v string) *GetPartitionsInput

SetCatalogId sets the CatalogId field's value.

SetDatabaseName

func (s *GetPartitionsInput) SetDatabaseName(v string) *GetPartitionsInput

SetDatabaseName sets the DatabaseName field's value.

SetExpression

func (s *GetPartitionsInput) SetExpression(v string) *GetPartitionsInput

SetExpression sets the Expression field's value.

SetMaxResults

func (s *GetPartitionsInput) SetMaxResults(v int64) *GetPartitionsInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *GetPartitionsInput) SetNextToken(v string) *GetPartitionsInput

SetNextToken sets the NextToken field's value.

SetSegment

func (s *GetPartitionsInput) SetSegment(v *Segment) *GetPartitionsInput

SetSegment sets the Segment field's value.

SetTableName

func (s *GetPartitionsInput) SetTableName(v string) *GetPartitionsInput

SetTableName sets the TableName field's value.

String

func (s GetPartitionsInput) String() string

String returns the string representation

Validate

func (s *GetPartitionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: