Package io.streamnative.oxia.client.api
Interface GetOption
- All Known Implementing Classes:
OptionComparisonType,OptionPartitionKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GetOptionComparisonCeiling option will make the get operation to search for the record whose key is the lowest key >= to the supplied key.static final GetOptionComparisonEqual sets the Get() operation to compare the stored key for equality.static final GetOptionComparisonFloor option will make the get operation to search for the record whose key is the highest key <= to the supplied key.static final GetOptionComparisonHigher option will make the get operation to search for the record whose key is strictly > to the supplied key.static final GetOptionComparisonLower option will make the get operation to search for the record whose key is strictly < to the supplied key. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GetOptionPartitionKey(@NonNull String partitionKey) PartitionKey overrides the partition routing with the specified `partitionKey` instead of the regular record key.
-
Field Details
-
ComparisonEqual
ComparisonEqual sets the Get() operation to compare the stored key for equality. -
ComparisonFloor
ComparisonFloor option will make the get operation to search for the record whose key is the highest key <= to the supplied key. -
ComparisonCeiling
ComparisonCeiling option will make the get operation to search for the record whose key is the lowest key >= to the supplied key. -
ComparisonLower
ComparisonLower option will make the get operation to search for the record whose key is strictly < to the supplied key. -
ComparisonHigher
ComparisonHigher option will make the get operation to search for the record whose key is strictly > to the supplied key.
-
-
Method Details
-
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
-