Package io.oxia.client.api.options
Interface ListOption
public interface ListOption
Options for listing records.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ListOptionPartitionKey(String partitionKey) PartitionKey overrides the partition routing with the specified `partitionKey` instead of the regular record key.static ListOptionUseIndex let the users specify a different index to follow for the list operation
-
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- Returns:
- the ListOption.
-
UseIndex
UseIndex let the users specify a different index to follow for the list operationNote: The returned list will contain they primary keys of the records
- Parameters:
secondaryIndexName- the name of the secondary index to use for the list operation- Returns:
- the ListOption.
-