Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Table = Table' {
- retention :: Maybe Natural
- targetTable :: Maybe TableIdentifier
- isRegisteredWithLakeFormation :: Maybe Bool
- createdBy :: Maybe Text
- tableType :: Maybe Text
- catalogId :: Maybe Text
- owner :: Maybe Text
- viewOriginalText :: Maybe Text
- updateTime :: Maybe POSIX
- viewExpandedText :: Maybe Text
- lastAnalyzedTime :: Maybe POSIX
- storageDescriptor :: Maybe StorageDescriptor
- databaseName :: Maybe Text
- parameters :: Maybe (HashMap Text Text)
- lastAccessTime :: Maybe POSIX
- description :: Maybe Text
- partitionKeys :: Maybe [Column]
- createTime :: Maybe POSIX
- name :: Text
- newTable :: Text -> Table
- table_retention :: Lens' Table (Maybe Natural)
- table_targetTable :: Lens' Table (Maybe TableIdentifier)
- table_isRegisteredWithLakeFormation :: Lens' Table (Maybe Bool)
- table_createdBy :: Lens' Table (Maybe Text)
- table_tableType :: Lens' Table (Maybe Text)
- table_catalogId :: Lens' Table (Maybe Text)
- table_owner :: Lens' Table (Maybe Text)
- table_viewOriginalText :: Lens' Table (Maybe Text)
- table_updateTime :: Lens' Table (Maybe UTCTime)
- table_viewExpandedText :: Lens' Table (Maybe Text)
- table_lastAnalyzedTime :: Lens' Table (Maybe UTCTime)
- table_storageDescriptor :: Lens' Table (Maybe StorageDescriptor)
- table_databaseName :: Lens' Table (Maybe Text)
- table_parameters :: Lens' Table (Maybe (HashMap Text Text))
- table_lastAccessTime :: Lens' Table (Maybe UTCTime)
- table_description :: Lens' Table (Maybe Text)
- table_partitionKeys :: Lens' Table (Maybe [Column])
- table_createTime :: Lens' Table (Maybe UTCTime)
- table_name :: Lens' Table Text
Documentation
Represents a collection of related data organized in columns and rows.
See: newTable
smart constructor.
Table' | |
|
Instances
Create a value of Table
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:retention:Table'
, table_retention
- The retention time for this table.
$sel:targetTable:Table'
, table_targetTable
- A TableIdentifier
structure that describes a target table for resource
linking.
$sel:isRegisteredWithLakeFormation:Table'
, table_isRegisteredWithLakeFormation
- Indicates whether the table has been registered with Lake Formation.
$sel:createdBy:Table'
, table_createdBy
- The person or entity who created the table.
$sel:tableType:Table'
, table_tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
$sel:catalogId:Table'
, table_catalogId
- The ID of the Data Catalog in which the table resides.
$sel:owner:Table'
, table_owner
- The owner of the table.
$sel:viewOriginalText:Table'
, table_viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.
$sel:updateTime:Table'
, table_updateTime
- The last time that the table was updated.
$sel:viewExpandedText:Table'
, table_viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.
$sel:lastAnalyzedTime:Table'
, table_lastAnalyzedTime
- The last time that column statistics were computed for this table.
$sel:storageDescriptor:Table'
, table_storageDescriptor
- A storage descriptor containing information about the physical storage
of this table.
$sel:databaseName:Table'
, table_databaseName
- The name of the database where the table metadata resides. For Hive
compatibility, this must be all lowercase.
$sel:parameters:Table'
, table_parameters
- These key-value pairs define properties associated with the table.
$sel:lastAccessTime:Table'
, table_lastAccessTime
- The last time that the table was accessed. This is usually taken from
HDFS, and might not be reliable.
$sel:description:Table'
, table_description
- A description of the table.
$sel:partitionKeys:Table'
, table_partitionKeys
- 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": []
$sel:createTime:Table'
, table_createTime
- The time when the table definition was created in the Data Catalog.
$sel:name:Table'
, table_name
- The table name. For Hive compatibility, this must be entirely lowercase.
table_targetTable :: Lens' Table (Maybe TableIdentifier) Source #
A TableIdentifier
structure that describes a target table for resource
linking.
table_isRegisteredWithLakeFormation :: Lens' Table (Maybe Bool) Source #
Indicates whether the table has been registered with Lake Formation.
table_tableType :: Lens' Table (Maybe Text) Source #
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
table_catalogId :: Lens' Table (Maybe Text) Source #
The ID of the Data Catalog in which the table resides.
table_viewOriginalText :: Lens' Table (Maybe Text) Source #
If the table is a view, the original text of the view; otherwise null
.
table_viewExpandedText :: Lens' Table (Maybe Text) Source #
If the table is a view, the expanded text of the view; otherwise null
.
table_lastAnalyzedTime :: Lens' Table (Maybe UTCTime) Source #
The last time that column statistics were computed for this table.
table_storageDescriptor :: Lens' Table (Maybe StorageDescriptor) Source #
A storage descriptor containing information about the physical storage of this table.
table_databaseName :: Lens' Table (Maybe Text) Source #
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
table_parameters :: Lens' Table (Maybe (HashMap Text Text)) Source #
These key-value pairs define properties associated with the table.
table_lastAccessTime :: Lens' Table (Maybe UTCTime) Source #
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
table_partitionKeys :: Lens' Table (Maybe [Column]) Source #
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": []