|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SplitMap
Defines a split map over a SplittableResource
. A split map is a
layout of an actual partitioning. Each partition is associated with a number,
ranging from 0 to noOfPartitions-1.
The partitions are layouted as rectangles, where each rectangle represents a partition
or a neighborhood around a partition. Every partition or neighborhood can be queried.
IP-Addresses can be associated with partitions to identify the server on which a partition is located.
The interface is largely implementation independent. Multiple implementations exist.
You can query the SplitMap for neighbors of a partition.
SplitMap1DHorizontal
,
SplitMap1DVertical
,
SplitMap2D
,
AbstractSplitMap
Method Summary | |
---|---|
int |
getCount()
|
String |
getDescription()
|
Rectangle |
getGlobalBounds()
|
Rectangle |
getGlobalCalculationBounds()
|
String |
getIP(int pos)
|
Rectangle |
getLocalBounds(int pos)
Gets the whole partition bounds (including available neighborhood) |
Rectangle |
getLocalCalculationBounds(int pos)
|
Rectangle |
getLocalNeighborhoodBounds(int pos)
|
int |
getNeighborhoodRange()
|
int[] |
getNeighborsForPosition(int pos)
returns an Array of neighbors for that position in the splitmap. |
Rectangle |
getPartitionBounds(int pos)
|
Rectangle |
getPartitionCalculationBounds(int pos)
|
Rectangle |
getPartitionNeighborhoodBounds(int pos)
|
void |
makeMap()
Creates the map |
void |
setIPs(String[] IPs)
|
void |
setParameters(SplittableResource splittable,
int neighborhoodRange,
int noOfPartitions,
AbstractSplitMap.NeighborhoodBoxingMode boxingMode)
Sets the given values. |
void |
setWeights(double... weights)
With this setter, you can assign each partition a weight, so that the data you split is not splitted equally, but arcording to these values. |
Method Detail |
---|
int[] getNeighborsForPosition(int pos)
pos
- position in splitmap
void setWeights(double... weights)
weights
-
UnsupportedOperationException
- if the number of weights does
not match the number of partitionsString getDescription()
Rectangle getPartitionCalculationBounds(int pos)
pos
- the partition number
Rectangle getPartitionNeighborhoodBounds(int pos)
pos
- the partition number
Rectangle getPartitionBounds(int pos)
pos
- the partition number
getPartitionNeighborhoodBounds(int)
Rectangle getGlobalCalculationBounds()
getGlobalBounds()
Rectangle getGlobalBounds()
Rectangle getLocalBounds(int pos)
pos
- the partition number
Rectangle getLocalCalculationBounds(int pos)
pos
- the partition number
Rectangle getLocalNeighborhoodBounds(int pos)
pos
- the partition number
void setParameters(SplittableResource splittable, int neighborhoodRange, int noOfPartitions, AbstractSplitMap.NeighborhoodBoxingMode boxingMode)
splittable
- the resource on which the splitmap is calculatedneighborhoodRange
- the neighborhoodrangenoOfPartitions
- the number of partitions to be generatedboxingMode
- the boxing modevoid setIPs(String[] IPs)
IPs
- a String Array of IPs which are mapped to the partition in the given order.String getIP(int pos)
pos
- position for this splitmap
int getNeighborhoodRange()
void makeMap()
int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |