@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
Returns true if the Parameters property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasPartitionKeys()
Returns true if the PartitionKeys property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
Boolean |
isRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS 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 (
EXTERNAL_TABLE, VIRTUAL_VIEW, etc.). |
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 |
viewExpandedText()
If the table is a view, the expanded text of the view; otherwise
null. |
String |
viewOriginalText()
If the table is a view, the original text of the view; otherwise
null. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The table name. For Hive compatibility, this must be entirely lowercase.
public String databaseName()
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
public String description()
A description of the table.
public String owner()
The owner of the table.
public Instant createTime()
The time when the table definition was created in the Data Catalog.
public Instant updateTime()
The last time that the table was updated.
public Instant lastAccessTime()
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
public Instant lastAnalyzedTime()
The last time that column statistics were computed for this table.
public Integer retention()
The retention time for this table.
public StorageDescriptor storageDescriptor()
A storage descriptor containing information about the physical storage of this table.
public boolean hasPartitionKeys()
public 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.
You can use hasPartitionKeys() to see if a value was sent in this field.
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 String viewOriginalText()
If the table is a view, the original text of the view; otherwise null.
null.public String viewExpandedText()
If the table is a view, the expanded text of the view; otherwise null.
null.public String tableType()
The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).
EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).public boolean hasParameters()
public 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.
You can use hasParameters() to see if a value was sent in this field.
public String createdBy()
The person or entity who created the table.
public Boolean isRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS Lake Formation.
public TableIdentifier targetTable()
A TableIdentifier structure that describes a target table for resource linking.
TableIdentifier structure that describes a target table for resource linking.public String catalogId()
The ID of the Data Catalog in which the table resides.
public Table.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Table.Builder,Table>public static Table.Builder builder()
public static Class<? extends Table.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.