Class BlockfileRowCodec
java.lang.Object
io.datarouter.bytes.blockfile.row.BlockfileRowCodec
Format:
[keyLength] varint
[keyBytes] bytes
[versionLength] varint
[versionBytes] bytes
[op] single byte
[valueLength] varint
[valueBytes] bytes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockfileRowcreate(byte[] key, byte[] version, BlockfileRowOp op, byte[] value) static byte[]encode(byte[] key, byte[] version, BlockfileRowOp op, byte[] value) static voidencodeInto(byte[] key, byte[] version, BlockfileRowOp op, byte[] value, byte[] intoBytes, int offset) static BlockfileRowfromBytes(byte[] bytes) static BlockfileRowfromBytes(byte[] bytes, int offset) static intlength(byte[] key, byte[] version, byte[] value)
-
Constructor Details
-
BlockfileRowCodec
public BlockfileRowCodec()
-
-
Method Details
-
length
public static int length(byte[] key, byte[] version, byte[] value) -
create
-
encode
-
encodeInto
public static void encodeInto(byte[] key, byte[] version, BlockfileRowOp op, byte[] value, byte[] intoBytes, int offset) -
fromBytes
-
fromBytes
-