Class ValueBlockV1
java.lang.Object
io.datarouter.filesystem.snapshot.block.value.ValueBlockV1
- All Implemented Interfaces:
Block,ValueBlock
public class ValueBlockV1 extends Object implements ValueBlock
Simple format using 4-byte ints. Contains 4 parts:
1) numValues: encoded 4 byte int
2) endingSection:
- 4 byte ints representing the lastByte of each value relative to the valueSection
3) valueSection: variable bytes for each value
4) checksumSection: 8 byte long
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ValueBlockV1(byte[] bytes) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.filesystem.snapshot.block.value.ValueBlock
valueCopies
-
Field Details
-
FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ValueBlockV1
public ValueBlockV1(byte[] bytes)
-
-
Method Details
-
heapSize
public int heapSize() -
numValues
public int numValues()- Specified by:
numValuesin interfaceValueBlock
-
value
public io.datarouter.bytes.Bytes value(int index)- Specified by:
valuein interfaceValueBlock
-
values
public io.datarouter.scanner.Scanner<io.datarouter.bytes.Bytes> values()- Specified by:
valuesin interfaceValueBlock
-