@Generated(value="software.amazon.awssdk:codegen") public final class Table extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Table.Builder,Table>
Represents a collection of related data organized in columns and rows.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Table.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Table.Builder |
builder() |
String |
catalogId()
The ID of the Data Catalog in which the table resides.
|
String |
createdBy()
The person or entity who created the table.
|
Instant |
createTime()
The time when the table definition was created in the Data Catalog.
|
String |
databaseName()
The name of the database where the table metadata resides.
|
String |
description()
A description of the table.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FederatedTable |
federatedTable()
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
boolean |
hasPartitionKeys()
For responses, this returns true if the service returned a value for the PartitionKeys property.
|
Boolean |
isRegisteredWithLakeFormation()
Indicates whether the table has been registered with Lake Formation.
|
Instant |
lastAccessTime()
The last time that the table was accessed.
|
Instant |
lastAnalyzedTime()
The last time that column statistics were computed for this table.
|
String |
name()
The table name.
|
String |
owner()
The owner of the table.
|
Map<String,String> |
parameters()
These key-value pairs define properties associated with the table.
|
List<Column> |
partitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
retention()
The retention time for this table.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Table.Builder> |
serializableBuilderClass() |
StorageDescriptor |
storageDescriptor()
A storage descriptor containing information about the physical storage of this table.
|
String |
tableType()
The type of this table.
|
TableIdentifier |
targetTable()
A
TableIdentifier structure that describes a target table for resource linking. |
Table.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updateTime()
The last time that the table was updated.
|
String |
versionId()
The ID of the table version.
|
String |
viewExpandedText()
Included for Apache Hive compatibility.
|
String |
viewOriginalText()
Included for Apache Hive compatibility.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The table name. For Hive compatibility, this must be entirely lowercase.
public final String databaseName()
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
public final String description()
A description of the table.
public final String owner()
The owner of the table.
public final Instant createTime()
The time when the table definition was created in the Data Catalog.
public final Instant updateTime()
The last time that the table was updated.
public final Instant lastAccessTime()
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
public final Instant lastAnalyzedTime()
The last time that column statistics were computed for this table.
public final Integer retention()
The retention time for this table.
public final StorageDescriptor storageDescriptor()
A storage descriptor containing information about the physical storage of this table.
public final boolean hasPartitionKeys()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Column> 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": []
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPartitionKeys() method.
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": []
public final String viewOriginalText()
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.
VIRTUAL_VIEW, certain Athena configuration encoded in base64.public final String viewExpandedText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public final String tableType()
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:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED.
EXTERNAL_TABLE type. Other
services, such as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED.
public final boolean hasParameters()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> parameters()
These key-value pairs define properties associated with the table.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters() method.
public final String createdBy()
The person or entity who created the table.
public final Boolean isRegisteredWithLakeFormation()
Indicates whether the table has been registered with Lake Formation.
public final TableIdentifier targetTable()
A TableIdentifier structure that describes a target table for resource linking.
TableIdentifier structure that describes a target table for resource linking.public final String catalogId()
The ID of the Data Catalog in which the table resides.
public final String versionId()
The ID of the table version.
public final FederatedTable federatedTable()
A FederatedTable structure that references an entity outside the Glue Data Catalog.
FederatedTable structure that references an entity outside the Glue Data Catalog.public Table.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Table.Builder,Table>public static Table.Builder builder()
public static Class<? extends Table.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.