Class PartitionManager

java.lang.Object
org.cip4.lib.xjdf.partition.PartitionManager

public class PartitionManager extends Object
Manager class containing all the partitioning logic.
  • 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.