Class NodeRefRadixHasher

  • All Implemented Interfaces:
    NodeRefHasher

    public class NodeRefRadixHasher
    extends java.lang.Object
    implements NodeRefHasher
    Creates string-pair hashes of NodeRefs where the first string is a stored hash combination for NodeRef store elements (protocol and id) and the second is a radix 36 encoded NodeRef id.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.alfresco.util.Pair<java.lang.String,​java.lang.String> hash​(org.alfresco.service.cmr.repository.NodeRef nodeRef)  
      org.alfresco.service.cmr.repository.NodeRef lookup​(org.alfresco.util.Pair<java.lang.String,​java.lang.String> hash)  
      • Methods inherited from class java.lang.Object

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

      • NodeRefRadixHasher

        public NodeRefRadixHasher()
      • NodeRefRadixHasher

        public NodeRefRadixHasher​(int radix)
    • Method Detail

      • hash

        public org.alfresco.util.Pair<java.lang.String,​java.lang.String> hash​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Specified by:
        hash in interface NodeRefHasher
      • lookup

        public org.alfresco.service.cmr.repository.NodeRef lookup​(org.alfresco.util.Pair<java.lang.String,​java.lang.String> hash)
        Specified by:
        lookup in interface NodeRefHasher