@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Partition extends Object implements Serializable, Cloneable, StructuredPojo
Represents a slice of table data.
Constructor and Description |
---|
Partition() |
Modifier and Type | Method and Description |
---|---|
Partition |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
Partition |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Partition |
clone() |
boolean |
equals(Object obj) |
String |
getCatalogId()
The ID of the Data Catalog in which the partition resides.
|
Date |
getCreationTime()
The time at which the partition was created.
|
String |
getDatabaseName()
The name of the catalog database in which to create the partition.
|
Date |
getLastAccessTime()
The last time at which the partition was accessed.
|
Date |
getLastAnalyzedTime()
The last time at which column statistics were computed for this partition.
|
Map<String,String> |
getParameters()
These key-value pairs define partition parameters.
|
StorageDescriptor |
getStorageDescriptor()
Provides information about the physical location where the partition is stored.
|
String |
getTableName()
The name of the database table in which to create the partition.
|
List<String> |
getValues()
The values of the partition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCatalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.
|
void |
setCreationTime(Date creationTime)
The time at which the partition was created.
|
void |
setDatabaseName(String databaseName)
The name of the catalog database in which to create the partition.
|
void |
setLastAccessTime(Date lastAccessTime)
The last time at which the partition was accessed.
|
void |
setLastAnalyzedTime(Date lastAnalyzedTime)
The last time at which column statistics were computed for this partition.
|
void |
setParameters(Map<String,String> parameters)
These key-value pairs define partition parameters.
|
void |
setStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
|
void |
setTableName(String tableName)
The name of the database table in which to create the partition.
|
void |
setValues(Collection<String> values)
The values of the partition.
|
String |
toString()
Returns a string representation of this object.
|
Partition |
withCatalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.
|
Partition |
withCreationTime(Date creationTime)
The time at which the partition was created.
|
Partition |
withDatabaseName(String databaseName)
The name of the catalog database in which to create the partition.
|
Partition |
withLastAccessTime(Date lastAccessTime)
The last time at which the partition was accessed.
|
Partition |
withLastAnalyzedTime(Date lastAnalyzedTime)
The last time at which column statistics were computed for this partition.
|
Partition |
withParameters(Map<String,String> parameters)
These key-value pairs define partition parameters.
|
Partition |
withStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
|
Partition |
withTableName(String tableName)
The name of the database table in which to create the partition.
|
Partition |
withValues(Collection<String> values)
The values of the partition.
|
Partition |
withValues(String... values)
The values of the partition.
|
public List<String> getValues()
The values of the partition.
public void setValues(Collection<String> values)
The values of the partition.
values
- The values of the partition.public Partition withValues(String... values)
The values of the partition.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values of the partition.public Partition withValues(Collection<String> values)
The values of the partition.
values
- The values of the partition.public void setDatabaseName(String databaseName)
The name of the catalog database in which to create the partition.
databaseName
- The name of the catalog database in which to create the partition.public String getDatabaseName()
The name of the catalog database in which to create the partition.
public Partition withDatabaseName(String databaseName)
The name of the catalog database in which to create the partition.
databaseName
- The name of the catalog database in which to create the partition.public void setTableName(String tableName)
The name of the database table in which to create the partition.
tableName
- The name of the database table in which to create the partition.public String getTableName()
The name of the database table in which to create the partition.
public Partition withTableName(String tableName)
The name of the database table in which to create the partition.
tableName
- The name of the database table in which to create the partition.public void setCreationTime(Date creationTime)
The time at which the partition was created.
creationTime
- The time at which the partition was created.public Date getCreationTime()
The time at which the partition was created.
public Partition withCreationTime(Date creationTime)
The time at which the partition was created.
creationTime
- The time at which the partition was created.public void setLastAccessTime(Date lastAccessTime)
The last time at which the partition was accessed.
lastAccessTime
- The last time at which the partition was accessed.public Date getLastAccessTime()
The last time at which the partition was accessed.
public Partition withLastAccessTime(Date lastAccessTime)
The last time at which the partition was accessed.
lastAccessTime
- The last time at which the partition was accessed.public void setStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
storageDescriptor
- Provides information about the physical location where the partition is stored.public StorageDescriptor getStorageDescriptor()
Provides information about the physical location where the partition is stored.
public Partition withStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
storageDescriptor
- Provides information about the physical location where the partition is stored.public Map<String,String> getParameters()
These key-value pairs define partition parameters.
public void setParameters(Map<String,String> parameters)
These key-value pairs define partition parameters.
parameters
- These key-value pairs define partition parameters.public Partition withParameters(Map<String,String> parameters)
These key-value pairs define partition parameters.
parameters
- These key-value pairs define partition parameters.public Partition addParametersEntry(String key, String value)
public Partition clearParametersEntries()
public void setLastAnalyzedTime(Date lastAnalyzedTime)
The last time at which column statistics were computed for this partition.
lastAnalyzedTime
- The last time at which column statistics were computed for this partition.public Date getLastAnalyzedTime()
The last time at which column statistics were computed for this partition.
public Partition withLastAnalyzedTime(Date lastAnalyzedTime)
The last time at which column statistics were computed for this partition.
lastAnalyzedTime
- The last time at which column statistics were computed for this partition.public void setCatalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.
catalogId
- The ID of the Data Catalog in which the partition resides.public String getCatalogId()
The ID of the Data Catalog in which the partition resides.
public Partition withCatalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.
catalogId
- The ID of the Data Catalog in which the partition resides.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.