@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) |
Partition |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Partition |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The time at which the partition was created.
|
String |
getDatabaseName()
The name of the catalog database where the table in question is located.
|
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()
Partition parameters, in the form of a list of key-value pairs.
|
StorageDescriptor |
getStorageDescriptor()
Provides information about the physical location where the partition is stored.
|
String |
getTableName()
The name of the table in question.
|
List<String> |
getValues()
The values of the partition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreationTime(Date creationTime)
The time at which the partition was created.
|
void |
setDatabaseName(String databaseName)
The name of the catalog database where the table in question is located.
|
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)
Partition parameters, in the form of a list of key-value pairs.
|
void |
setStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
|
void |
setTableName(String tableName)
The name of the table in question.
|
void |
setValues(Collection<String> values)
The values of the partition.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Partition |
withCreationTime(Date creationTime)
The time at which the partition was created.
|
Partition |
withDatabaseName(String databaseName)
The name of the catalog database where the table in question is located.
|
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)
Partition parameters, in the form of a list of key-value pairs.
|
Partition |
withStorageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
|
Partition |
withTableName(String tableName)
The name of the table in question.
|
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 where the table in question is located.
databaseName
- The name of the catalog database where the table in question is located.public String getDatabaseName()
The name of the catalog database where the table in question is located.
public Partition withDatabaseName(String databaseName)
The name of the catalog database where the table in question is located.
databaseName
- The name of the catalog database where the table in question is located.public void setTableName(String tableName)
The name of the table in question.
tableName
- The name of the table in question.public String getTableName()
The name of the table in question.
public Partition withTableName(String tableName)
The name of the table in question.
tableName
- The name of the table in question.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()
Partition parameters, in the form of a list of key-value pairs.
public void setParameters(Map<String,String> parameters)
Partition parameters, in the form of a list of key-value pairs.
parameters
- Partition parameters, in the form of a list of key-value pairs.public Partition withParameters(Map<String,String> parameters)
Partition parameters, in the form of a list of key-value pairs.
parameters
- Partition parameters, in the form of a list of key-value pairs.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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.