public class DataObjectImpl<T> extends java.lang.Object implements DataObject<T>
Constructor and Description |
---|
DataObjectImpl(Config conf) |
DataObjectImpl(java.lang.String name,
Config conf) |
Modifier and Type | Method and Description |
---|---|
void |
addPartition(DataPartition<T> partition)
Add a partition to the data object
|
java.lang.String |
getID()
ID of the data object.
|
DataPartition<T> |
getPartition(int partitionId)
Get the partition with the specific partition id
|
int |
getPartitionCount()
Get the number of partitions currently in the DataObject
|
DataPartition<T>[] |
getPartitions()
Get the list of partitions for a process
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnyPartition, getLowestPartition
public DataObjectImpl(Config conf)
public DataObjectImpl(java.lang.String name, Config conf)
public void addPartition(DataPartition<T> partition)
DataObject
addPartition
in interface DataObject<T>
partition
- the partitionpublic DataPartition<T>[] getPartitions()
DataObject
getPartitions
in interface DataObject<T>
public DataPartition<T> getPartition(int partitionId)
DataObject
getPartition
in interface DataObject<T>
partitionId
- partition idpublic int getPartitionCount()
DataObject
getPartitionCount
in interface DataObject<T>
public java.lang.String getID()
DataObject
getID
in interface DataObject<T>