Class DefaultRdbValueVisitor
- java.lang.Object
-
- com.moilioncircle.redis.replicator.rdb.RdbValueVisitor
-
- com.moilioncircle.redis.replicator.rdb.DefaultRdbValueVisitor
-
- Direct Known Subclasses:
DumpRdbValueVisitor
,SkipRdbValueVisitor
,ValueIterableRdbValueVisitor
public class DefaultRdbValueVisitor extends RdbValueVisitor
- Since:
- 3.1.0
- Author:
- Leon Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
protected Replicator
replicator
-
Constructor Summary
Constructors Constructor Description DefaultRdbValueVisitor(Replicator replicator)
-
Method Summary
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
replicator
protected final Replicator replicator
-
-
Constructor Detail
-
DefaultRdbValueVisitor
public DefaultRdbValueVisitor(Replicator replicator)
-
-
Method Detail
-
applyFunction
public <T> T applyFunction(RedisInputStream in, int version) throws IOException
- Overrides:
applyFunction
in classRdbValueVisitor
- Throws:
IOException
-
applyFunction2
public <T> T applyFunction2(RedisInputStream in, int version) throws IOException
- Overrides:
applyFunction2
in classRdbValueVisitor
- Throws:
IOException
-
applyString
public <T> T applyString(RedisInputStream in, int version) throws IOException
- Overrides:
applyString
in classRdbValueVisitor
- Throws:
IOException
-
applyList
public <T> T applyList(RedisInputStream in, int version) throws IOException
- Overrides:
applyList
in classRdbValueVisitor
- Throws:
IOException
-
applySet
public <T> T applySet(RedisInputStream in, int version) throws IOException
- Overrides:
applySet
in classRdbValueVisitor
- Throws:
IOException
-
applyZSet
public <T> T applyZSet(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSet
in classRdbValueVisitor
- Throws:
IOException
-
applyZSet2
public <T> T applyZSet2(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSet2
in classRdbValueVisitor
- Throws:
IOException
-
applyHash
public <T> T applyHash(RedisInputStream in, int version) throws IOException
- Overrides:
applyHash
in classRdbValueVisitor
- Throws:
IOException
-
applyHashZipMap
public <T> T applyHashZipMap(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashZipMap
in classRdbValueVisitor
- Throws:
IOException
-
applyListZipList
public <T> T applyListZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyListZipList
in classRdbValueVisitor
- Throws:
IOException
-
applySetIntSet
public <T> T applySetIntSet(RedisInputStream in, int version) throws IOException
- Overrides:
applySetIntSet
in classRdbValueVisitor
- Throws:
IOException
-
applyZSetZipList
public <T> T applyZSetZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSetZipList
in classRdbValueVisitor
- Throws:
IOException
-
applyZSetListPack
public <T> T applyZSetListPack(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSetListPack
in classRdbValueVisitor
- Throws:
IOException
-
applyHashZipList
public <T> T applyHashZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashZipList
in classRdbValueVisitor
- Throws:
IOException
-
applyHashListPack
public <T> T applyHashListPack(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashListPack
in classRdbValueVisitor
- Throws:
IOException
-
applyListQuickList
public <T> T applyListQuickList(RedisInputStream in, int version) throws IOException
- Overrides:
applyListQuickList
in classRdbValueVisitor
- Throws:
IOException
-
applyListQuickList2
public <T> T applyListQuickList2(RedisInputStream in, int version) throws IOException
- Overrides:
applyListQuickList2
in classRdbValueVisitor
- Throws:
IOException
-
applyModule
public <T> T applyModule(RedisInputStream in, int version) throws IOException
- Overrides:
applyModule
in classRdbValueVisitor
- Throws:
IOException
-
applyModule2
public <T> T applyModule2(RedisInputStream in, int version) throws IOException
- Overrides:
applyModule2
in classRdbValueVisitor
- Throws:
IOException
-
lookupModuleParser
protected ModuleParser<? extends Module> lookupModuleParser(String moduleName, int moduleVersion)
-
applyStreamListPacks
public <T> T applyStreamListPacks(RedisInputStream in, int version) throws IOException
- Overrides:
applyStreamListPacks
in classRdbValueVisitor
- Throws:
IOException
-
applyStreamListPacks2
public <T> T applyStreamListPacks2(RedisInputStream in, int version) throws IOException
- Overrides:
applyStreamListPacks2
in classRdbValueVisitor
- Throws:
IOException
-
-