Class EncodedBlock

java.lang.Object
io.datarouter.filesystem.snapshot.encode.EncodedBlock

public class EncodedBlock
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    byte[][] chunks  
    int totalLength  
  • Constructor Summary

    Constructors 
    Constructor Description
    EncodedBlock​(byte[] bytes)  
    EncodedBlock​(byte[][] chunks)  
    EncodedBlock​(int totalLength, byte[][] chunks)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Iterator<byte[]> chunkIterator()  
    byte[] concat()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • EncodedBlock

      public EncodedBlock​(byte[] bytes)
    • EncodedBlock

      public EncodedBlock​(byte[][] chunks)
    • EncodedBlock

      public EncodedBlock​(int totalLength, byte[][] chunks)
  • Method Details

    • concat

      public byte[] concat()
    • chunkIterator

      public java.util.Iterator<byte[]> chunkIterator()