add Serializable for BackupDecoder (#286)

Signed-off-by: marsishandsome <marsishandsome@gmail.com>
This commit is contained in:
Liangliang Gu 2021-10-15 13:48:43 +08:00 committed by GitHub
parent bbe4f9b0c4
commit f3a3abf3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);