public class TiRegion extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
class |
TiRegion.RegionVerID |
| 构造器和说明 |
|---|
TiRegion(Metapb.Region meta,
Metapb.Peer leader,
Kvrpcpb.IsolationLevel isolationLevel,
Kvrpcpb.CommandPri commandPri) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(com.google.protobuf.ByteString key) |
boolean |
contains(Key key) |
boolean |
equals(Object another) |
Kvrpcpb.Context |
getContext() |
Kvrpcpb.Context |
getContext(Set<Long> resolvedLocks) |
com.google.protobuf.ByteString |
getEndKey() |
long |
getId() |
Metapb.Peer |
getLeader() |
List<Metapb.Peer> |
getLearnerList() |
Metapb.Region |
getMeta() |
Metapb.RegionEpoch |
getRegionEpoch() |
com.google.protobuf.ByteString |
getStartKey() |
TiRegion.RegionVerID |
getVerID() |
int |
hashCode() |
boolean |
isLessThan(com.google.protobuf.ByteString key) |
boolean |
isMoreThan(com.google.protobuf.ByteString key) |
boolean |
isValid() |
TiRegion |
switchPeer(long leaderStoreID)
switches current peer to the one on specific store.
|
String |
toString() |
public TiRegion(Metapb.Region meta, Metapb.Peer leader, Kvrpcpb.IsolationLevel isolationLevel, Kvrpcpb.CommandPri commandPri)
public Metapb.Peer getLeader()
public List<Metapb.Peer> getLearnerList()
public long getId()
public com.google.protobuf.ByteString getStartKey()
public boolean contains(Key key)
public com.google.protobuf.ByteString getEndKey()
public Kvrpcpb.Context getContext()
public Kvrpcpb.Context getContext(Set<Long> resolvedLocks)
public TiRegion.RegionVerID getVerID()
public TiRegion switchPeer(long leaderStoreID)
leaderStoreID - is leader peer id.public boolean isMoreThan(com.google.protobuf.ByteString key)
public boolean isLessThan(com.google.protobuf.ByteString key)
public boolean contains(com.google.protobuf.ByteString key)
public boolean isValid()
public Metapb.RegionEpoch getRegionEpoch()
public Metapb.Region getMeta()
Copyright © 2022 PingCAP. All rights reserved.