Package org.cip4.lib.xjdf.partition
Class PartitionManager
java.lang.Object
org.cip4.lib.xjdf.partition.PartitionManager
Manager class containing all the partitioning logic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcegetResourceByPart(ResourceSet resourceSet, Part part) Identifies and returns a Resource within a ResourceSet using parition keys.
-
Constructor Details
-
PartitionManager
public PartitionManager()
-
-
Method Details
-
getResourceByPart
public static Resource getResourceByPart(ResourceSet resourceSet, Part part) throws IllegalAccessException Identifies and returns a Resource within a ResourceSet using parition keys.
This is the official CIP4 reference implementation of the XJDF partitioning algorithm.- Parameters:
resourceSet- The ResourceSet containing a set of partitioned Resources.part- The given Partition Keys used to identify a particular Resource- Returns:
- The Resource identified using partition keys.
- Throws:
IllegalAccessException- Is thrown in case the partition isn't accessible in Part class.
-