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, waitgetAnyPartition, getLowestPartitionpublic DataObjectImpl(Config conf)
public DataObjectImpl(java.lang.String name,
                      Config conf)
public void addPartition(DataPartition<T> partition)
DataObjectaddPartition in interface DataObject<T>partition - the partitionpublic DataPartition<T>[] getPartitions()
DataObjectgetPartitions in interface DataObject<T>public DataPartition<T> getPartition(int partitionId)
DataObjectgetPartition in interface DataObject<T>partitionId - partition idpublic int getPartitionCount()
DataObjectgetPartitionCount in interface DataObject<T>public java.lang.String getID()
DataObjectgetID in interface DataObject<T>