@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TableMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata for a table.
Constructor and Description |
---|
TableMetadata() |
Modifier and Type | Method and Description |
---|---|
TableMetadata |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
TableMetadata |
clearParametersEntries()
Removes all the entries added into Parameters.
|
TableMetadata |
clone() |
boolean |
equals(Object obj) |
List<Column> |
getColumns()
A list of the columns in the table.
|
Date |
getCreateTime()
The time that the table was created.
|
Date |
getLastAccessTime()
The last time the table was accessed.
|
String |
getName()
The name of the table.
|
Map<String,String> |
getParameters()
A set of custom key/value pairs for table properties.
|
List<Column> |
getPartitionKeys()
A list of the partition keys in the table.
|
String |
getTableType()
The type of table.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setColumns(Collection<Column> columns)
A list of the columns in the table.
|
void |
setCreateTime(Date createTime)
The time that the table was created.
|
void |
setLastAccessTime(Date lastAccessTime)
The last time the table was accessed.
|
void |
setName(String name)
The name of the table.
|
void |
setParameters(Map<String,String> parameters)
A set of custom key/value pairs for table properties.
|
void |
setPartitionKeys(Collection<Column> partitionKeys)
A list of the partition keys in the table.
|
void |
setTableType(String tableType)
The type of table.
|
String |
toString()
Returns a string representation of this object.
|
TableMetadata |
withColumns(Collection<Column> columns)
A list of the columns in the table.
|
TableMetadata |
withColumns(Column... columns)
A list of the columns in the table.
|
TableMetadata |
withCreateTime(Date createTime)
The time that the table was created.
|
TableMetadata |
withLastAccessTime(Date lastAccessTime)
The last time the table was accessed.
|
TableMetadata |
withName(String name)
The name of the table.
|
TableMetadata |
withParameters(Map<String,String> parameters)
A set of custom key/value pairs for table properties.
|
TableMetadata |
withPartitionKeys(Collection<Column> partitionKeys)
A list of the partition keys in the table.
|
TableMetadata |
withPartitionKeys(Column... partitionKeys)
A list of the partition keys in the table.
|
TableMetadata |
withTableType(String tableType)
The type of table.
|
public void setName(String name)
The name of the table.
name
- The name of the table.public String getName()
The name of the table.
public TableMetadata withName(String name)
The name of the table.
name
- The name of the table.public void setCreateTime(Date createTime)
The time that the table was created.
createTime
- The time that the table was created.public Date getCreateTime()
The time that the table was created.
public TableMetadata withCreateTime(Date createTime)
The time that the table was created.
createTime
- The time that the table was created.public void setLastAccessTime(Date lastAccessTime)
The last time the table was accessed.
lastAccessTime
- The last time the table was accessed.public Date getLastAccessTime()
The last time the table was accessed.
public TableMetadata withLastAccessTime(Date lastAccessTime)
The last time the table was accessed.
lastAccessTime
- The last time the table was accessed.public void setTableType(String tableType)
The type of table. In Athena, only EXTERNAL_TABLE
is supported.
tableType
- The type of table. In Athena, only EXTERNAL_TABLE
is supported.public String getTableType()
The type of table. In Athena, only EXTERNAL_TABLE
is supported.
EXTERNAL_TABLE
is supported.public TableMetadata withTableType(String tableType)
The type of table. In Athena, only EXTERNAL_TABLE
is supported.
tableType
- The type of table. In Athena, only EXTERNAL_TABLE
is supported.public List<Column> getColumns()
A list of the columns in the table.
public void setColumns(Collection<Column> columns)
A list of the columns in the table.
columns
- A list of the columns in the table.public TableMetadata withColumns(Column... columns)
A list of the columns in the table.
NOTE: This method appends the values to the existing list (if any). Use
setColumns(java.util.Collection)
or withColumns(java.util.Collection)
if you want to override
the existing values.
columns
- A list of the columns in the table.public TableMetadata withColumns(Collection<Column> columns)
A list of the columns in the table.
columns
- A list of the columns in the table.public List<Column> getPartitionKeys()
A list of the partition keys in the table.
public void setPartitionKeys(Collection<Column> partitionKeys)
A list of the partition keys in the table.
partitionKeys
- A list of the partition keys in the table.public TableMetadata withPartitionKeys(Column... partitionKeys)
A list of the partition keys in the table.
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 the partition keys in the table.public TableMetadata withPartitionKeys(Collection<Column> partitionKeys)
A list of the partition keys in the table.
partitionKeys
- A list of the partition keys in the table.public Map<String,String> getParameters()
A set of custom key/value pairs for table properties.
public void setParameters(Map<String,String> parameters)
A set of custom key/value pairs for table properties.
parameters
- A set of custom key/value pairs for table properties.public TableMetadata withParameters(Map<String,String> parameters)
A set of custom key/value pairs for table properties.
parameters
- A set of custom key/value pairs for table properties.public TableMetadata addParametersEntry(String key, String value)
public TableMetadata clearParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public TableMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.