java.lang.Object | |
↳ | com.netflix.astyanax.recipes.uniqueness.RowUniquenessConstraint<K, C> |
Test uniqueness for a single row. This implementation allows for any column type. If the column family uses UTF8Type for the comparator then it is preferable to use ColumnPrefixUniquenessConstraint.
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
| |||||||||||
Read the data stored with the unique row.
| |||||||||||
Release the uniqueness lock for this row.
| |||||||||||
Specify the data value to add to the column.
| |||||||||||
[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 |
Read the data stored with the unique row. This data is normally a 'foreign' key to another column family.@return
Exception |
---|
Release the uniqueness lock for this row. Only call this when you no longer need the uniqueness lock
Exception |
---|
Specify the data value to add to the column.