mirror of https://github.com/tikv/client-java.git
add Serializable for BackupDecoder (#286)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
This commit is contained in:
parent
bbe4f9b0c4
commit
f3a3abf3ef
|
@ -17,12 +17,13 @@
|
|||
|
||||
package org.tikv.br;
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.rocksdb.Options;
|
||||
import org.rocksdb.ReadOptions;
|
||||
import org.tikv.common.exception.SSTDecodeException;
|
||||
import org.tikv.kvproto.Brpb;
|
||||
|
||||
public class BackupDecoder {
|
||||
public class BackupDecoder implements Serializable {
|
||||
private final Brpb.BackupMeta backupMeta;
|
||||
private final boolean ttlEnabled;
|
||||
private final KVDecoder kvDecoder;
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
package org.tikv.br;
|
||||
|
||||
import com.google.protobuf.ByteString;
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface KVDecoder {
|
||||
public interface KVDecoder extends Serializable {
|
||||
ByteString decodeKey(byte[] key);
|
||||
|
||||
ByteString decodeValue(byte[] value);
|
||||
|
|
Loading…
Reference in New Issue