public abstract class BlobKey extends Object implements Serializable, Comparable<BlobKey>
Modifier and Type | Field and Description |
---|---|
static int |
SIZE
Size of the internal BLOB key in bytes.
|
Modifier | Constructor and Description |
---|---|
protected |
BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type)
Constructs a new BLOB key.
|
protected |
BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type,
byte[] key)
Constructs a new BLOB key from the given byte array.
|
protected |
BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type,
byte[] key,
byte[] random)
Constructs a new BLOB key from the given byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
addToMessageDigest(MessageDigest md)
Adds the BLOB key to the given
MessageDigest . |
int |
compareTo(BlobKey o) |
boolean |
equals(Object obj) |
byte[] |
getHash()
Returns the hash component of this key.
|
int |
hashCode() |
String |
toString() |
public static final int SIZE
protected BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type)
type
- whether the referenced BLOB is permanent or transientprotected BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type, byte[] key)
type
- whether the referenced BLOB is permanent or transientkey
- the actual key dataprotected BlobKey(org.apache.flink.runtime.blob.BlobKey.BlobType type, byte[] key, byte[] random)
type
- whether the referenced BLOB is permanent or transientkey
- the actual key datarandom
- the random component of the key@VisibleForTesting public byte[] getHash()
public void addToMessageDigest(MessageDigest md)
MessageDigest
.md
- the message digest to add the BLOB key topublic int compareTo(BlobKey o)
compareTo
in interface Comparable<BlobKey>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.