Class KeyStrategyDocId

  • All Implemented Interfaces:
    KeyStrategy

    public class KeyStrategyDocId
    extends Object
    implements KeyStrategy
    Represents computation of blob keys based on the document id suffixed by the xpath if not the main blob.
    Since:
    11.1
    • Constructor Detail

      • KeyStrategyDocId

        public KeyStrategyDocId()
    • Method Detail

      • useDeDuplication

        public boolean useDeDuplication()
        Description copied from interface: KeyStrategy
        Checks whether this key strategy uses de-duplication. When de-duplication is used, two blobs with identical contents have identical keys.
        Specified by:
        useDeDuplication in interface KeyStrategy
      • getDigestFromKey

        public String getDigestFromKey​(String key)
        Description copied from interface: KeyStrategy
        Gets, if possible, a digest from the key. This is not possible if the key is not derived from a digest.
        Specified by:
        getDigestFromKey in interface KeyStrategy
        Parameters:
        key - the key
        Returns:
        a digest, or null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object