public class RequestKeyV2Codec extends Object implements RequestKeyCodec
Modifier and Type | Field and Description |
---|---|
protected com.google.protobuf.ByteString |
infiniteEndKey |
protected com.google.protobuf.ByteString |
keyPrefix |
protected static com.google.protobuf.ByteString |
RAW_DEFAULT_END |
protected static com.google.protobuf.ByteString |
RAW_DEFAULT_PREFIX |
protected static com.google.protobuf.ByteString |
TXN_DEFAULT_END |
protected static com.google.protobuf.ByteString |
TXN_DEFAULT_PREFIX |
Constructor and Description |
---|
RequestKeyV2Codec() |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.ByteString |
decodeKey(com.google.protobuf.ByteString key) |
Metapb.Region |
decodeRegion(Metapb.Region region) |
com.google.protobuf.ByteString |
encodeKey(com.google.protobuf.ByteString key) |
com.google.protobuf.ByteString |
encodePdQuery(com.google.protobuf.ByteString key) |
Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> |
encodePdQueryRange(com.google.protobuf.ByteString start,
com.google.protobuf.ByteString end) |
Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> |
encodeRange(com.google.protobuf.ByteString start,
com.google.protobuf.ByteString end) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decodeKvPair, decodeKvPairs, decodePdRegions, encodeKeys, encodeMutations
protected static final com.google.protobuf.ByteString RAW_DEFAULT_PREFIX
protected static final com.google.protobuf.ByteString RAW_DEFAULT_END
protected static final com.google.protobuf.ByteString TXN_DEFAULT_PREFIX
protected static final com.google.protobuf.ByteString TXN_DEFAULT_END
protected com.google.protobuf.ByteString keyPrefix
protected com.google.protobuf.ByteString infiniteEndKey
public com.google.protobuf.ByteString encodeKey(com.google.protobuf.ByteString key)
encodeKey
in interface RequestKeyCodec
public com.google.protobuf.ByteString decodeKey(com.google.protobuf.ByteString key)
decodeKey
in interface RequestKeyCodec
public Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> encodeRange(com.google.protobuf.ByteString start, com.google.protobuf.ByteString end)
encodeRange
in interface RequestKeyCodec
public com.google.protobuf.ByteString encodePdQuery(com.google.protobuf.ByteString key)
encodePdQuery
in interface RequestKeyCodec
public Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> encodePdQueryRange(com.google.protobuf.ByteString start, com.google.protobuf.ByteString end)
encodePdQueryRange
in interface RequestKeyCodec
public Metapb.Region decodeRegion(Metapb.Region region)
decodeRegion
in interface RequestKeyCodec
Copyright © 2024 PingCAP. All rights reserved.