Interface DeleteOption

All Known Subinterfaces:
OptionVersionId
All Known Implementing Classes:
OptionPartitionKey, OptionVersionId.OptionRecordDoesNotExist, OptionVersionId.OptionVersionIdEqual

public sealed interface DeleteOption permits OptionPartitionKey, OptionVersionId
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    IfVersionIdEquals(long versionId)
     
    PartitionKey(@NonNull String partitionKey)
    PartitionKey overrides the partition routing with the specified `partitionKey` instead of the regular record key.
  • Method Details

    • IfVersionIdEquals

      static DeleteOption IfVersionIdEquals(long versionId)
    • PartitionKey

      static DeleteOption PartitionKey(@NonNull @NonNull String 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