java.lang.Object | |
↳ | com.netflix.astyanax.recipes.uniqueness.ColumnPrefixUniquenessConstraint<K> |
Perform a uniqueness constraint using the locking recipe. The usage here is to take the lock and then re-write the column without a TTL to 'persist' it in cassandra.
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
| |||||||||||
Release the uniqueness lock for this row.
| |||||||||||
Specify the unique value to use for the column name when doing the uniqueness
constraint.
|
[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 unique value to use for the column name when doing the uniqueness constraint. In many cases this will be a TimeUUID that is used as the row key to store the actual data for the unique key tracked in this column family.