Package io.streamnative.oxia.proto
Interface NamespaceShardsAssignmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NamespaceShardsAssignment,NamespaceShardsAssignment.Builder
public interface NamespaceShardsAssignmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAssignments(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.intAll assignments in the response stream will contain all the assignments to bring the client up to date.All assignments in the response stream will contain all the assignments to bring the client up to date.getAssignmentsOrBuilder(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.List<? extends ShardAssignmentOrBuilder>All assignments in the response stream will contain all the assignments to bring the client up to date.Indicates the mechanism by which the keys are assigned to the individual shards.intIndicates the mechanism by which the keys are assigned to the individual shards.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAssignmentsList
List<ShardAssignment> getAssignmentsList()All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsCount
int getAssignmentsCount()All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsOrBuilderList
List<? extends ShardAssignmentOrBuilder> getAssignmentsOrBuilderList()All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsOrBuilder
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getShardKeyRouterValue
int getShardKeyRouterValue()Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Returns:
- The enum numeric value on the wire for shardKeyRouter.
-
getShardKeyRouter
ShardKeyRouter getShardKeyRouter()Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Returns:
- The shardKeyRouter.
-