Package org.cip4.lib.xjdf.partition
Class PartitionManager
- java.lang.Object
-
- org.cip4.lib.xjdf.partition.PartitionManager
-
public class PartitionManager extends java.lang.ObjectManager class containing all the partitioning logic.
-
-
Constructor Summary
Constructors Constructor Description PartitionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourcegetResourceByPart(ResourceSet resourceSet, Part part)Identifies and returns a Resource within a ResourceSet using parition keys.
-
-
-
Method Detail
-
getResourceByPart
public static Resource getResourceByPart(ResourceSet resourceSet, Part part) throws java.lang.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:
java.lang.IllegalAccessException- Is thrown in case the partition isn't accessible in Part class.
-
-