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.Loggerloggerprotected Replicatorreplicator
-
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:
applyFunctionin classRdbValueVisitor- Throws:
IOException
-
applyFunction2
public <T> T applyFunction2(RedisInputStream in, int version) throws IOException
- Overrides:
applyFunction2in classRdbValueVisitor- Throws:
IOException
-
applyString
public <T> T applyString(RedisInputStream in, int version) throws IOException
- Overrides:
applyStringin classRdbValueVisitor- Throws:
IOException
-
applyList
public <T> T applyList(RedisInputStream in, int version) throws IOException
- Overrides:
applyListin classRdbValueVisitor- Throws:
IOException
-
applySet
public <T> T applySet(RedisInputStream in, int version) throws IOException
- Overrides:
applySetin classRdbValueVisitor- Throws:
IOException
-
applySetListPack
public <T> T applySetListPack(RedisInputStream in, int version) throws IOException
- Overrides:
applySetListPackin classRdbValueVisitor- Throws:
IOException
-
applyZSet
public <T> T applyZSet(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSetin classRdbValueVisitor- Throws:
IOException
-
applyZSet2
public <T> T applyZSet2(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSet2in classRdbValueVisitor- Throws:
IOException
-
applyHash
public <T> T applyHash(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashin classRdbValueVisitor- Throws:
IOException
-
applyHashZipMap
public <T> T applyHashZipMap(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashZipMapin classRdbValueVisitor- Throws:
IOException
-
applyListZipList
public <T> T applyListZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyListZipListin classRdbValueVisitor- Throws:
IOException
-
applySetIntSet
public <T> T applySetIntSet(RedisInputStream in, int version) throws IOException
- Overrides:
applySetIntSetin classRdbValueVisitor- Throws:
IOException
-
applyZSetZipList
public <T> T applyZSetZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSetZipListin classRdbValueVisitor- Throws:
IOException
-
applyZSetListPack
public <T> T applyZSetListPack(RedisInputStream in, int version) throws IOException
- Overrides:
applyZSetListPackin classRdbValueVisitor- Throws:
IOException
-
applyHashZipList
public <T> T applyHashZipList(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashZipListin classRdbValueVisitor- Throws:
IOException
-
applyHashListPack
public <T> T applyHashListPack(RedisInputStream in, int version) throws IOException
- Overrides:
applyHashListPackin classRdbValueVisitor- Throws:
IOException
-
applyListQuickList
public <T> T applyListQuickList(RedisInputStream in, int version) throws IOException
- Overrides:
applyListQuickListin classRdbValueVisitor- Throws:
IOException
-
applyListQuickList2
public <T> T applyListQuickList2(RedisInputStream in, int version) throws IOException
- Overrides:
applyListQuickList2in classRdbValueVisitor- Throws:
IOException
-
applyModule
public <T> T applyModule(RedisInputStream in, int version) throws IOException
- Overrides:
applyModulein classRdbValueVisitor- Throws:
IOException
-
applyModule2
public <T> T applyModule2(RedisInputStream in, int version) throws IOException
- Overrides:
applyModule2in 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:
applyStreamListPacksin classRdbValueVisitor- Throws:
IOException
-
applyStreamListPacks2
public <T> T applyStreamListPacks2(RedisInputStream in, int version) throws IOException
- Overrides:
applyStreamListPacks2in classRdbValueVisitor- Throws:
IOException
-
applyStreamListPacks3
public <T> T applyStreamListPacks3(RedisInputStream in, int version) throws IOException
- Overrides:
applyStreamListPacks3in classRdbValueVisitor- Throws:
IOException
-
applyStreamListPacks
protected <T> T applyStreamListPacks(RedisInputStream in, int version, int type) throws IOException
- Throws:
IOException
-
-