appl.parallel.spmd.split
Class SinglePartitionInfo
java.lang.Object
appl.parallel.spmd.split.SinglePartitionInfo
- All Implemented Interfaces:
- PartitionInfo, Serializable, Cloneable
public class SinglePartitionInfo
- extends Object
- implements Serializable, PartitionInfo
This class collects the metadata of a partitioning
The following information is encapsulated in a SinglePartitionInfo Object:
-
The IDof the
SplittableResource
- The baseResourceName of the resource (given by the parallel programmer)
- The
DataHandler
, which loads the data of the partition. This is a very important aspect.
The handler defines how the data is actually loaded. It may for example be loaded
from a DataServer
using a XuluClientLoader
, but it may also be used
to load data from local disk, databases etc. without communication with the client.
The DataHandler
is also responsible for writing the the data back to the source
-
The
SplitMap
which represents the current partitioning.
-
A splitmap position, which identifies the partition number in the split.
- Author:
- Dominik Appl
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SinglePartitionInfo
public SinglePartitionInfo(int baseResourceID,
String baseResourceName,
PartitionDataHandler handler,
SplitMap splitMap,
int splitMapPos)
- The constructor.
- Parameters:
baseResourceID
- the root id (see DataPartition.getRootID()
)baseResourceName
- the name of the resource (given by parallel programmer)handler
- PartitionDataHandler
which is responsible for loading and unloadingsplitMap
- splitmap describing the partitioningsplitMapPos
- the position inside the splitmap
getBaseResourceID
public int getBaseResourceID()
- Returns:
- the baseResourceID
getPartitionDataHandler
public PartitionDataHandler getPartitionDataHandler()
- Returns:
- the handler
getSplitMap
public SplitMap getSplitMap()
- Specified by:
getSplitMap
in interface PartitionInfo
- Returns:
- the splitMap for this partition
getSplitMapPos
public int getSplitMapPos()
- Specified by:
getSplitMapPos
in interface PartitionInfo
- Returns:
- the splitMapPos position inside the
SplitMap
getBaseResourceName
public String getBaseResourceName()
- Specified by:
getBaseResourceName
in interface PartitionInfo
- Returns:
- the baseResourceName the name of the base resource (mother resource). The name
is string which is the user provides for identification an retrieval on server side.
clone
public PartitionInfo clone(int newRootID)
- Description copied from interface:
PartitionInfo
- This method can especially be used by multi data methods to create a new instance of this
data type
- Specified by:
clone
in interface PartitionInfo
- Parameters:
newRootID
- the id of the base resource for the NEW copy of the PartitionInfo
- Returns:
- the new
PartitionInfo