java.lang.Object | |
↳ | com.netflix.astyanax.recipes.uniqueness.MultiRowUniquenessConstraint |
Check uniqueness for multiple rows. This test is done by 1. First writing a unique column to all rows, in a single batch. Include a TTL for some failure conditions. 2. Reading back the unique columns from each row (must be done in a separate call) and making sure there is only one such column 3. Committing the columns without a TTL
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Acquire the row(s) for uniqueness.
| |||||||||||
Acquire the uniqueness constraint and apply the final mutation if the
row if found to be unique
| |||||||||||
Return the lock column written to ALL rows
| |||||||||||
Release the uniqueness lock for this row.
| |||||||||||
Specify the prefix that uniquely distinguishes the lock columns from data
columns
| |||||||||||
Consistency level used
| |||||||||||
Override the autogenerated lock column.
| |||||||||||
Add a row to the set of rows being tested for uniqueness
| |||||||||||
TTL to use for the uniquness operation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.netflix.astyanax.recipes.uniqueness.UniquenessConstraint
|
Acquire the row(s) for uniqueness. Call release() when the uniqueness on the row(s) is no longer needed, such as when deleting the rows.
Exception | |
---|---|
NotUniqueException |
Acquire the uniqueness constraint and apply the final mutation if the row if found to be unique
Exception | |
---|---|
NotUniqueException |
Release the uniqueness lock for this row. Only call this when you no longer need the uniqueness lock
Exception |
---|
Specify the prefix that uniquely distinguishes the lock columns from data columns
Consistency level used
Override the autogenerated lock column.
Add a row to the set of rows being tested for uniqueness
TTL to use for the uniquness operation. This is the TTL for the columns to expire in the event of a client crash before the uniqueness can be committed