@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TableInput extends Object implements Serializable, Cloneable, StructuredPojo
Structure used to create or update the table.
Constructor and Description |
---|
TableInput() |
Modifier and Type | Method and Description |
---|---|
TableInput |
addParametersEntry(String key,
String value) |
TableInput |
clearParametersEntries()
Removes all the entries added into Parameters.
|
TableInput |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
Description of the table.
|
Date |
getLastAccessTime()
Last time the table was accessed.
|
Date |
getLastAnalyzedTime()
Last time column statistics were computed for this table.
|
String |
getName()
Name of the table.
|
String |
getOwner()
Owner of the table.
|
Map<String,String> |
getParameters()
Properties associated with this table, as a list of key-value pairs.
|
List<Column> |
getPartitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
getRetention()
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)
Description of the table.
|
void |
setLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
|
void |
setLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
|
void |
setName(String name)
Name of the table.
|
void |
setOwner(String owner)
Owner of the table.
|
void |
setParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
|
void |
setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
void |
setRetention(Integer retention)
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; useful for testing and debugging.
|
TableInput |
withDescription(String description)
Description of the table.
|
TableInput |
withLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
|
TableInput |
withLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
|
TableInput |
withName(String name)
Name of the table.
|
TableInput |
withOwner(String owner)
Owner of the table.
|
TableInput |
withParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
|
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)
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)
Name of the table.
name
- Name of the table.public String getName()
Name of the table.
public TableInput withName(String name)
Name of the table.
name
- Name of the table.public void setDescription(String description)
Description of the table.
description
- Description of the table.public String getDescription()
Description of the table.
public TableInput withDescription(String description)
Description of the table.
description
- Description of the table.public void setOwner(String owner)
Owner of the table.
owner
- Owner of the table.public String getOwner()
Owner of the table.
public TableInput withOwner(String owner)
Owner of the table.
owner
- Owner of the table.public void setLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
lastAccessTime
- Last time the table was accessed.public Date getLastAccessTime()
Last time the table was accessed.
public TableInput withLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
lastAccessTime
- Last time the table was accessed.public void setLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.public Date getLastAnalyzedTime()
Last time column statistics were computed for this table.
public TableInput withLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.public void setRetention(Integer retention)
Retention time for this table.
retention
- Retention time for this table.public Integer getRetention()
Retention time for this table.
public TableInput withRetention(Integer retention)
Retention time for this table.
retention
- 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.
public void setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.public TableInput withPartitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
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.public TableInput withPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.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()
Properties associated with this table, as a list of key-value pairs.
public void setParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
parameters
- Properties associated with this table, as a list of key-value pairs.public TableInput withParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
parameters
- Properties associated with this table, as a list of key-value pairs.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.