Package io.streamnative.oxia.proto
Interface ShardAssignmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ShardAssignment,ShardAssignment.Builder
public interface ShardAssignmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3;.io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3;The shard leader, e.g.com.google.protobuf.ByteStringThe shard leader, e.g.longThe shard idboolean.io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3;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
-
getShardId
long getShardId()The shard id
int64 shard_id = 1;- Returns:
- The shardId.
-
getLeader
String getLeader()The shard leader, e.g. `host:port`
string leader = 2;- Returns:
- The leader.
-
getLeaderBytes
com.google.protobuf.ByteString getLeaderBytes()The shard leader, e.g. `host:port`
string leader = 2;- Returns:
- The bytes for leader.
-
hasInt32HashRange
boolean hasInt32HashRange().io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3;- Returns:
- Whether the int32HashRange field is set.
-
getInt32HashRange
Int32HashRange getInt32HashRange().io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3;- Returns:
- The int32HashRange.
-
getInt32HashRangeOrBuilder
Int32HashRangeOrBuilder getInt32HashRangeOrBuilder().io.streamnative.oxia.proto.Int32HashRange int32_hash_range = 3; -
getShardBoundariesCase
ShardAssignment.ShardBoundariesCase getShardBoundariesCase()
-