Class BaseRdbEncoder
- java.lang.Object
-
- com.moilioncircle.redis.replicator.rdb.BaseRdbEncoder
-
public class BaseRdbEncoder extends Object
- Since:
- 3.5.3
- Author:
- Leon Chen
-
-
Constructor Summary
Constructors Constructor Description BaseRdbEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrdbGenericSaveStringObject(ByteArray bytes, OutputStream out)voidrdbSaveBinaryDoubleValue(double value, OutputStream out)voidrdbSaveBinaryFloatValue(float value, OutputStream out)voidrdbSaveDoubleValue(double value, OutputStream out)voidrdbSaveEncodedStringObject(ByteArray bytes, OutputStream out)byte[]rdbSaveLen(long len)intrdbSaveLen(long len, OutputStream out)voidrdbSaveMillisecondTime(long timestamp, OutputStream out)voidrdbSavePlainStringObject(ByteArray bytes, OutputStream out)voidrdbSaveTime(int time, OutputStream out)
-
-
-
Method Detail
-
rdbSaveTime
public void rdbSaveTime(int time, OutputStream out) throws IOException- Parameters:
time- timeout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadTime()
-
rdbSaveMillisecondTime
public void rdbSaveMillisecondTime(long timestamp, OutputStream out) throws IOException- Parameters:
timestamp- timestampout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadMillisecondTime()
-
rdbSaveLen
public int rdbSaveLen(long len, OutputStream out) throws IOException- Parameters:
len- lenout- out- Returns:
- length
- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadLen()
-
rdbSaveLen
public byte[] rdbSaveLen(long len) throws IOException- Parameters:
len- len- Returns:
- byte array
- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadLen()
-
rdbSaveDoubleValue
public void rdbSaveDoubleValue(double value, OutputStream out) throws IOException- Parameters:
value- valueout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadDoubleValue()
-
rdbSaveBinaryFloatValue
public void rdbSaveBinaryFloatValue(float value, OutputStream out) throws IOException- Parameters:
value- valueout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadBinaryFloatValue()
-
rdbSaveBinaryDoubleValue
public void rdbSaveBinaryDoubleValue(double value, OutputStream out) throws IOException- Parameters:
value- valueout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadBinaryDoubleValue()
-
rdbSaveEncodedStringObject
public void rdbSaveEncodedStringObject(ByteArray bytes, OutputStream out) throws IOException
- Parameters:
bytes- inputout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadEncodedStringObject()
-
rdbGenericSaveStringObject
public void rdbGenericSaveStringObject(ByteArray bytes, OutputStream out) throws IOException
- Parameters:
bytes- bytesout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbGenericLoadStringObject(int)
-
rdbSavePlainStringObject
public void rdbSavePlainStringObject(ByteArray bytes, OutputStream out) throws IOException
- Parameters:
bytes- bytesout- out- Throws:
IOException- IOException- Since:
- 3.5.3
- See Also:
BaseRdbParser.rdbLoadPlainStringObject()
-
-