Class PartitionManager


  • public class PartitionManager
    extends java.lang.Object
    Manager class containing all the partitioning logic.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Resource getResourceByPart​(ResourceSet resourceSet, Part part)
      Identifies and returns a Resource within a ResourceSet using parition keys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PartitionManager

        public PartitionManager()
    • 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.