You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glue::Types::TableInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TableInput as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "NameString", # required
  description: "DescriptionString",
  owner: "NameString",
  last_access_time: Time.now,
  last_analyzed_time: Time.now,
  retention: 1,
  storage_descriptor: {
    columns: [
      {
        name: "NameString", # required
        type: "ColumnTypeString",
        comment: "CommentString",
      },
    ],
    location: "LocationString",
    input_format: "FormatString",
    output_format: "FormatString",
    compressed: false,
    number_of_buckets: 1,
    serde_info: {
      name: "NameString",
      serialization_library: "NameString",
      parameters: {
        "KeyString" => "ParametersMapValue",
      },
    },
    bucket_columns: ["NameString"],
    sort_columns: [
      {
        column: "NameString", # required
        sort_order: 1, # required
      },
    ],
    parameters: {
      "KeyString" => "ParametersMapValue",
    },
    skewed_info: {
      skewed_column_names: ["NameString"],
      skewed_column_values: ["ColumnValuesString"],
      skewed_column_value_location_maps: {
        "ColumnValuesString" => "ColumnValuesString",
      },
    },
    stored_as_sub_directories: false,
  },
  partition_keys: [
    {
      name: "NameString", # required
      type: "ColumnTypeString",
      comment: "CommentString",
    },
  ],
  view_original_text: "ViewTextString",
  view_expanded_text: "ViewTextString",
  table_type: "TableTypeString",
  parameters: {
    "KeyString" => "ParametersMapValue",
  },
}

Structure used to create or update the table.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Description of the table.

Returns:

  • (String)

    Description of the table.

#last_access_timeTime

Last time the table was accessed.

Returns:

  • (Time)

    Last time the table was accessed.

#last_analyzed_timeTime

Last time column statistics were computed for this table.

Returns:

  • (Time)

    Last time column statistics were computed for this table.

#nameString

Name of the table.

Returns:

  • (String)

    Name of the table.

#ownerString

Owner of the table.

Returns:

  • (String)

    Owner of the table.

#parametersHash<String,String>

Properties associated with this table, as a list of key-value pairs.

Returns:

  • (Hash<String,String>)

    Properties associated with this table, as a list of key-value pairs.

#partition_keysArray<Types::Column>

A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

Returns:

  • (Array<Types::Column>)

    A list of columns by which the table is partitioned.

#retentionInteger

Retention time for this table.

Returns:

  • (Integer)

    Retention time for this table.

#storage_descriptorTypes::StorageDescriptor

A storage descriptor containing information about the physical storage of this table.

Returns:

#table_typeString

The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

Returns:

  • (String)

    The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

#view_expanded_textString

If the table is a view, the expanded text of the view; otherwise null.

Returns:

  • (String)

    If the table is a view, the expanded text of the view; otherwise null.

#view_original_textString

If the table is a view, the original text of the view; otherwise null.

Returns:

  • (String)

    If the table is a view, the original text of the view; otherwise null.