Struct aws_sdk_glue::types::Table
source · #[non_exhaustive]pub struct Table {Show 21 fields
pub name: String,
pub database_name: Option<String>,
pub description: Option<String>,
pub owner: Option<String>,
pub create_time: Option<DateTime>,
pub update_time: Option<DateTime>,
pub last_access_time: Option<DateTime>,
pub last_analyzed_time: Option<DateTime>,
pub retention: i32,
pub storage_descriptor: Option<StorageDescriptor>,
pub partition_keys: Option<Vec<Column>>,
pub view_original_text: Option<String>,
pub view_expanded_text: Option<String>,
pub table_type: Option<String>,
pub parameters: Option<HashMap<String, String>>,
pub created_by: Option<String>,
pub is_registered_with_lake_formation: bool,
pub target_table: Option<TableIdentifier>,
pub catalog_id: Option<String>,
pub version_id: Option<String>,
pub federated_table: Option<FederatedTable>,
}
Expand description
Represents a collection of related data organized in columns and rows.
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.name: String
The table name. For Hive compatibility, this must be entirely lowercase.
database_name: Option<String>
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
description: Option<String>
A description of the table.
owner: Option<String>
The owner of the table.
create_time: Option<DateTime>
The time when the table definition was created in the Data Catalog.
update_time: Option<DateTime>
The last time that the table was updated.
last_access_time: Option<DateTime>
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
last_analyzed_time: Option<DateTime>
The last time that column statistics were computed for this table.
retention: i32
The retention time for this table.
storage_descriptor: Option<StorageDescriptor>
A storage descriptor containing information about the physical storage of this table.
partition_keys: Option<Vec<Column>>
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
view_original_text: Option<String>
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a VIRTUAL_VIEW
, certain Athena configuration encoded in base64.
view_expanded_text: Option<String>
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
table_type: Option<String>
The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services, such as Athena, may create tables with additional table types.
Glue related table types:
- EXTERNAL_TABLE
-
Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED
-
Used by Lake Formation. The Glue Data Catalog understands
GOVERNED
.
parameters: Option<HashMap<String, String>>
These key-value pairs define properties associated with the table.
created_by: Option<String>
The person or entity who created the table.
is_registered_with_lake_formation: bool
Indicates whether the table has been registered with Lake Formation.
target_table: Option<TableIdentifier>
A TableIdentifier
structure that describes a target table for resource linking.
catalog_id: Option<String>
The ID of the Data Catalog in which the table resides.
version_id: Option<String>
The ID of the table version.
federated_table: Option<FederatedTable>
A FederatedTable
structure that references an entity outside the Glue Data Catalog.
Implementations§
source§impl Table
impl Table
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The table name. For Hive compatibility, this must be entirely lowercase.
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the table.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time when the table definition was created in the Data Catalog.
sourcepub fn update_time(&self) -> Option<&DateTime>
pub fn update_time(&self) -> Option<&DateTime>
The last time that the table was updated.
sourcepub fn last_access_time(&self) -> Option<&DateTime>
pub fn last_access_time(&self) -> Option<&DateTime>
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
sourcepub fn last_analyzed_time(&self) -> Option<&DateTime>
pub fn last_analyzed_time(&self) -> Option<&DateTime>
The last time that column statistics were computed for this table.
sourcepub fn storage_descriptor(&self) -> Option<&StorageDescriptor>
pub fn storage_descriptor(&self) -> Option<&StorageDescriptor>
A storage descriptor containing information about the physical storage of this table.
sourcepub fn partition_keys(&self) -> &[Column]
pub fn partition_keys(&self) -> &[Column]
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .partition_keys.is_none()
.
sourcepub fn view_original_text(&self) -> Option<&str>
pub fn view_original_text(&self) -> Option<&str>
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a VIRTUAL_VIEW
, certain Athena configuration encoded in base64.
sourcepub fn view_expanded_text(&self) -> Option<&str>
pub fn view_expanded_text(&self) -> Option<&str>
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
sourcepub fn table_type(&self) -> Option<&str>
pub fn table_type(&self) -> Option<&str>
The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services, such as Athena, may create tables with additional table types.
Glue related table types:
- EXTERNAL_TABLE
-
Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED
-
Used by Lake Formation. The Glue Data Catalog understands
GOVERNED
.
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn parameters(&self) -> Option<&HashMap<String, String>>
These key-value pairs define properties associated with the table.
sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
The person or entity who created the table.
sourcepub fn is_registered_with_lake_formation(&self) -> bool
pub fn is_registered_with_lake_formation(&self) -> bool
Indicates whether the table has been registered with Lake Formation.
sourcepub fn target_table(&self) -> Option<&TableIdentifier>
pub fn target_table(&self) -> Option<&TableIdentifier>
A TableIdentifier
structure that describes a target table for resource linking.
sourcepub fn catalog_id(&self) -> Option<&str>
pub fn catalog_id(&self) -> Option<&str>
The ID of the Data Catalog in which the table resides.
sourcepub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
The ID of the table version.
sourcepub fn federated_table(&self) -> Option<&FederatedTable>
pub fn federated_table(&self) -> Option<&FederatedTable>
A FederatedTable
structure that references an entity outside the Glue Data Catalog.