Package org.projectnessie.versioned
Interface Unchanged
- All Superinterfaces:
Operation
An operation when ensures that a value has been unchanged since the expected hash for a commit.
Always expects to match hash since this is otherwise a no-op. Can be used to enforce serialized
transaction isolation confirming that no operations have occurred to the provided key since the
operation stated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.projectnessie.versioned.Operation
Operation.OperationType -
Method Summary
Modifier and TypeMethodDescriptiondefault Operation.OperationTypegetType()static Unchangedof(org.projectnessie.model.ContentKey key) Creates a unchanged operation for the given key.default booleanWhether the commit expected hash should be reviewed to confirm the key for this operation hasn't changed since the expected hash.
-
Method Details
-
getType
-
shouldMatchHash
default boolean shouldMatchHash()Description copied from interface:OperationWhether the commit expected hash should be reviewed to confirm the key for this operation hasn't changed since the expected hash.- Specified by:
shouldMatchHashin interfaceOperation- Returns:
- True if this operation should match the hash.
-
of
Creates a unchanged operation for the given key.- Parameters:
key- the key impacted by the operation- Returns:
- a unchanged operation for the key
-