Class DefaultRdbModuleParser
- java.lang.Object
-
- com.moilioncircle.redis.replicator.rdb.module.DefaultRdbModuleParser
-
public class DefaultRdbModuleParser extends Object
- Since:
- 2.1.0
- Version:
- 2.1.2
- Author:
- Leon Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description DefaultRdbModuleParser(RedisInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisInputStreaminputStream()doubleloadDouble(int version)floatloadFloat(int version)BigDecimalloadLongDouble(int version)longloadSigned(int version)StringloadString(int version)byte[]loadStringBuffer(int version)BigIntegerloadUnsigned(int version)
-
-
-
Constructor Detail
-
DefaultRdbModuleParser
public DefaultRdbModuleParser(RedisInputStream in)
-
-
Method Detail
-
inputStream
public RedisInputStream inputStream()
-
loadSigned
public long loadSigned(int version) throws IOException- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- signed long
- Throws:
IOException- IOException- Since:
- 2.3.0
-
loadUnsigned
public BigInteger loadUnsigned(int version) throws IOException
- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- unsigned long
- Throws:
IOException- IOException- Since:
- 2.3.0
-
loadString
public String loadString(int version) throws IOException
- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- string
- Throws:
IOException- IOException- Since:
- 2.3.0
-
loadStringBuffer
public byte[] loadStringBuffer(int version) throws IOException- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- string buffer
- Throws:
IOException- IOException- Since:
- 2.3.0
-
loadDouble
public double loadDouble(int version) throws IOException- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- double
- Throws:
IOException- IOException- Since:
- 2.3.0
-
loadFloat
public float loadFloat(int version) throws IOException- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- single precision float
- Throws:
IOException- io exception- Since:
- 2.3.0
-
loadLongDouble
public BigDecimal loadLongDouble(int version) throws IOException
- Parameters:
version- param version ofModuleParser.parse(RedisInputStream, int)- Returns:
- BigDecimal(long double in c)
- Throws:
IOException- io exception- Since:
- 3.4.0
-
-