Package io.oxia.client.api.options
Interface DeleteOption
public interface DeleteOption
Options for deleting a record.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic DeleteOptionIfVersionIdEquals(long versionId) Conditional delete will only succeed if the record's version matches the supplied versionId.static DeleteOptionPartitionKey(String partitionKey) PartitionKey overrides the partition routing with the specified `partitionKey` instead of the regular record key.
-
Method Details
-
IfVersionIdEquals
Conditional delete will only succeed if the record's version matches the supplied versionId.- Parameters:
versionId- the versionId to compare with the record's version.- Returns:
- the delete option.
-
PartitionKey
PartitionKey overrides the partition routing with the specified `partitionKey` instead of the regular record key.Records with the same partitionKey will always be guaranteed to be co-located in the same Oxia shard.
- Parameters:
partitionKey- the partition key to use- Returns:
- the delete option.
-