@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TableInput extends Object implements Serializable, Cloneable, StructuredPojo
A structure used to define a table.
Constructor and Description |
---|
TableInput() |
Modifier and Type | Method and Description |
---|---|
TableInput |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
TableInput |
clearParametersEntries()
Removes all the entries added into Parameters.
|
TableInput |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the table.
|
Date |
getLastAccessTime()
The last time that the table was accessed.
|
Date |
getLastAnalyzedTime()
The last time that column statistics were computed for this table.
|
String |
getName()
The table name.
|
String |
getOwner()
The table owner.
|
Map<String,String> |
getParameters()
These key-value pairs define properties associated with the table.
|
List<Column> |
getPartitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
getRetention()
The retention time for this table.
|
StorageDescriptor |
getStorageDescriptor()
A storage descriptor containing information about the physical storage of this table.
|
String |
getTableType()
The type of this table.
|
TableIdentifier |
getTargetTable()
A
TableIdentifier structure that describes a target table for resource linking. |
ViewDefinitionInput |
getViewDefinition()
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
String |
getViewExpandedText()
Included for Apache Hive compatibility.
|
String |
getViewOriginalText()
Included for Apache Hive compatibility.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description of the table.
|
void |
setLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
|
void |
setLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
|
void |
setName(String name)
The table name.
|
void |
setOwner(String owner)
The table owner.
|
void |
setParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
void |
setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
void |
setRetention(Integer retention)
The retention time for this table.
|
void |
setStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
void |
setTableType(String tableType)
The type of this table.
|
void |
setTargetTable(TableIdentifier targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
void |
setViewDefinition(ViewDefinitionInput viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
void |
setViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility.
|
void |
setViewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility.
|
String |
toString()
Returns a string representation of this object.
|
TableInput |
withDescription(String description)
A description of the table.
|
TableInput |
withLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
|
TableInput |
withLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
|
TableInput |
withName(String name)
The table name.
|
TableInput |
withOwner(String owner)
The table owner.
|
TableInput |
withParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
TableInput |
withPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
TableInput |
withPartitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned.
|
TableInput |
withRetention(Integer retention)
The retention time for this table.
|
TableInput |
withStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
TableInput |
withTableType(String tableType)
The type of this table.
|
TableInput |
withTargetTable(TableIdentifier targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
TableInput |
withViewDefinition(ViewDefinitionInput viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
TableInput |
withViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility.
|
TableInput |
withViewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility.
|
public void setName(String name)
The table name. For Hive compatibility, this is folded to lowercase when it is stored.
name
- The table name. For Hive compatibility, this is folded to lowercase when it is stored.public String getName()
The table name. For Hive compatibility, this is folded to lowercase when it is stored.
public TableInput withName(String name)
The table name. For Hive compatibility, this is folded to lowercase when it is stored.
name
- The table name. For Hive compatibility, this is folded to lowercase when it is stored.public void setDescription(String description)
A description of the table.
description
- A description of the table.public String getDescription()
A description of the table.
public TableInput withDescription(String description)
A description of the table.
description
- A description of the table.public void setOwner(String owner)
The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
owner
- The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public String getOwner()
The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public TableInput withOwner(String owner)
The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
owner
- The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public void setLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
lastAccessTime
- The last time that the table was accessed.public Date getLastAccessTime()
The last time that the table was accessed.
public TableInput withLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
lastAccessTime
- The last time that the table was accessed.public void setLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
lastAnalyzedTime
- The last time that column statistics were computed for this table.public Date getLastAnalyzedTime()
The last time that column statistics were computed for this table.
public TableInput withLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
lastAnalyzedTime
- The last time that column statistics were computed for this table.public void setRetention(Integer retention)
The retention time for this table.
retention
- The retention time for this table.public Integer getRetention()
The retention time for this table.
public TableInput withRetention(Integer retention)
The retention time for this table.
retention
- The retention time for this table.public void setStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.public StorageDescriptor getStorageDescriptor()
A storage descriptor containing information about the physical storage of this table.
public TableInput withStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.public List<Column> getPartitionKeys()
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": []
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 void setPartitionKeys(Collection<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": []
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": []
public TableInput withPartitionKeys(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": []
NOTE: This method appends the values to the existing list (if any). Use
setPartitionKeys(java.util.Collection)
or withPartitionKeys(java.util.Collection)
if you want
to override the existing values.
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": []
public TableInput withPartitionKeys(Collection<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": []
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": []
public void setViewOriginalText(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.
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.public String getViewOriginalText()
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 TableInput withViewOriginalText(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.
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.public void setViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
viewExpandedText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public String getViewExpandedText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public TableInput withViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
viewExpandedText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public void setTableType(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
.
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
.
public String getTableType()
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 TableInput withTableType(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
.
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
.
public Map<String,String> getParameters()
These key-value pairs define properties associated with the table.
public void setParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
parameters
- These key-value pairs define properties associated with the table.public TableInput withParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
parameters
- These key-value pairs define properties associated with the table.public TableInput addParametersEntry(String key, String value)
public TableInput clearParametersEntries()
public void setTargetTable(TableIdentifier targetTable)
A TableIdentifier
structure that describes a target table for resource linking.
targetTable
- A TableIdentifier
structure that describes a target table for resource linking.public TableIdentifier getTargetTable()
A TableIdentifier
structure that describes a target table for resource linking.
TableIdentifier
structure that describes a target table for resource linking.public TableInput withTargetTable(TableIdentifier targetTable)
A TableIdentifier
structure that describes a target table for resource linking.
targetTable
- A TableIdentifier
structure that describes a target table for resource linking.public void setViewDefinition(ViewDefinitionInput viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
viewDefinition
- A structure that contains all the information that defines the view, including the dialect or dialects for
the view, and the query.public ViewDefinitionInput getViewDefinition()
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
public TableInput withViewDefinition(ViewDefinitionInput viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
viewDefinition
- A structure that contains all the information that defines the view, including the dialect or dialects for
the view, and the query.public String toString()
toString
in class Object
Object.toString()
public TableInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.