@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 (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
String |
getViewExpandedText()
If the table is a view, the expanded text of the view; otherwise
null . |
String |
getViewOriginalText()
If the table is a view, the original text of the view; otherwise
null . |
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 (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
void |
setViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
void |
setViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
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 (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
TableInput |
withViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
TableInput |
withViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
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.
owner
- The table owner.public String getOwner()
The table owner.
public TableInput withOwner(String owner)
The table owner.
owner
- The table owner.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)
If the table is a view, the original text of the view; otherwise null
.
viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.public String getViewOriginalText()
If the table is a view, the original text of the view; otherwise null
.
null
.public TableInput withViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise null
.
viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.public void setViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise null
.
viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.public String getViewExpandedText()
If the table is a view, the expanded text of the view; otherwise null
.
null
.public TableInput withViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise null
.
viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.public void setTableType(String tableType)
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).public String getTableType()
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).public TableInput withTableType(String tableType)
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.