Interface KeyStrategy

    • Field Detail

      • VER_SEP

        static final char VER_SEP
        Separator between object key and version id in the returned key.
        Since:
        11.2
        See Also:
        Constant Field Values
    • Method Detail

      • useDeDuplication

        boolean useDeDuplication()
        Checks whether this key strategy uses de-duplication. When de-duplication is used, two blobs with identical contents have identical keys.
      • getDigestFromKey

        String getDigestFromKey​(String key)
        Gets, if possible, a digest from the key. This is not possible if the key is not derived from a digest.
        Parameters:
        key - the key
        Returns:
        a digest, or null
      • isValidKey

        default boolean isValidKey​(String key)
        Does the given key have the expected pattern for this strategy.
        Since:
        2023.5