public class QldbHash extends Object
A QLDB hash is either a 256 bit number or a special empty hash. See QLDB Verification
The QLDB hash is used to create the commit hash of the transaction. The QLDB hash information is generated using the transaction id with the statements and their parameters used in the transaction.
| Constructor and Description |
|---|
QldbHash(byte[] qldbHash,
com.amazon.ion.IonSystem ionSystem) |
| Modifier and Type | Method and Description |
|---|---|
QldbHash |
dot(QldbHash that)
The QLDB dot operator joins two hashes and generates a new hash.
|
boolean |
equals(Object other) |
int |
getHashSize() |
byte[] |
getQldbHash()
Retrieves the `QldbHash` bytes.
|
int |
hashCode() |
boolean |
isEmpty() |
static QldbHash |
toQldbHash(com.amazon.ion.IonValue value,
com.amazon.ion.IonSystem ionSystem)
The QLDB Hash of an IonValue is just the IonHash of that value.
|
static QldbHash |
toQldbHash(String value,
com.amazon.ion.IonSystem ionSystem) |
String |
toString() |
public static QldbHash toQldbHash(com.amazon.ion.IonValue value, com.amazon.ion.IonSystem ionSystem)
value - The Ion value to hash.ionSystem - The Ion system that is used to read the Ion value.public QldbHash dot(QldbHash that)
that - The Ion value to hash.public int getHashSize()
public byte[] getQldbHash()
public boolean isEmpty()