Class BlobKey

    • Field Detail

      • SIZE

        public static final int SIZE
        Size of the internal BLOB key in bytes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BlobKey

        protected BlobKey​(org.apache.flink.runtime.blob.BlobKey.BlobType type)
        Constructs a new BLOB key.
        Parameters:
        type - whether the referenced BLOB is permanent or transient
      • BlobKey

        protected BlobKey​(org.apache.flink.runtime.blob.BlobKey.BlobType type,
                          byte[] key)
        Constructs a new BLOB key from the given byte array.
        Parameters:
        type - whether the referenced BLOB is permanent or transient
        key - the actual key data
      • BlobKey

        protected BlobKey​(org.apache.flink.runtime.blob.BlobKey.BlobType type,
                          byte[] key,
                          byte[] random)
        Constructs a new BLOB key from the given byte array.
        Parameters:
        type - whether the referenced BLOB is permanent or transient
        key - the actual key data
        random - the random component of the key
    • Method Detail

      • getHash

        @VisibleForTesting
        public byte[] getHash()
        Returns the hash component of this key.
        Returns:
        a 20 bit hash of the contents the key refers to
      • addToMessageDigest

        public void addToMessageDigest​(MessageDigest md)
        Adds the BLOB key to the given MessageDigest.
        Parameters:
        md - the message digest to add the BLOB key to
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object