Class ValueBlockV1

java.lang.Object
io.datarouter.filesystem.snapshot.block.value.ValueBlockV1
All Implemented Interfaces:
Block, ValueBlock

public class ValueBlockV1
extends java.lang.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

    Fields 
    Modifier and Type Field Description
    static java.lang.String FORMAT  
  • Constructor Summary

    Constructors 
    Constructor Description
    ValueBlockV1​(byte[] bytes)  
  • Method Summary

    Modifier and Type Method Description
    int heapSize()  
    int numValues()  
    io.datarouter.model.util.Bytes value​(int index)  
    io.datarouter.scanner.Scanner<io.datarouter.model.util.Bytes> values()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.datarouter.filesystem.snapshot.block.value.ValueBlock

    valueCopies