public class RequestKeyV1Codec extends Object implements RequestKeyCodec
Constructor and Description |
---|
RequestKeyV1Codec() |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.ByteString |
decodeKey(com.google.protobuf.ByteString key) |
Kvrpcpb.KvPair |
decodeKvPair(Kvrpcpb.KvPair pair) |
List<Kvrpcpb.KvPair> |
decodeKvPairs(List<Kvrpcpb.KvPair> pairs) |
List<Pdpb.Region> |
decodePdRegions(List<Pdpb.Region> regions) |
Metapb.Region |
decodeRegion(Metapb.Region region) |
com.google.protobuf.ByteString |
encodeKey(com.google.protobuf.ByteString key) |
List<com.google.protobuf.ByteString> |
encodeKeys(List<com.google.protobuf.ByteString> keys) |
List<Kvrpcpb.Mutation> |
encodeMutations(List<Kvrpcpb.Mutation> mutations) |
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) |
public com.google.protobuf.ByteString encodeKey(com.google.protobuf.ByteString key)
encodeKey
in interface RequestKeyCodec
public List<com.google.protobuf.ByteString> encodeKeys(List<com.google.protobuf.ByteString> keys)
encodeKeys
in interface RequestKeyCodec
public List<Kvrpcpb.Mutation> encodeMutations(List<Kvrpcpb.Mutation> mutations)
encodeMutations
in interface RequestKeyCodec
public com.google.protobuf.ByteString decodeKey(com.google.protobuf.ByteString key)
decodeKey
in interface RequestKeyCodec
public Kvrpcpb.KvPair decodeKvPair(Kvrpcpb.KvPair pair)
decodeKvPair
in interface RequestKeyCodec
public List<Kvrpcpb.KvPair> decodeKvPairs(List<Kvrpcpb.KvPair> pairs)
decodeKvPairs
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
public List<Pdpb.Region> decodePdRegions(List<Pdpb.Region> regions)
decodePdRegions
in interface RequestKeyCodec
Copyright © 2024 PingCAP. All rights reserved.