Class BlockDecoder

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

public class BlockDecoder
extends java.lang.Object
Use reflection to create Block instances based on the strings stored in the RootBlock and BlockTypeRegistry.
  • Constructor Summary

    Constructors 
    Constructor Description
    BlockDecoder​(java.lang.Class<? extends RootBlock> rootBlockClass, java.lang.Class<? extends BranchBlock> branchBlockClass, java.lang.Class<? extends LeafBlock> leafBlockClass, java.lang.Class<? extends ValueBlock> valueBlockClass)  
  • Method Summary

    Modifier and Type Method Description
    BranchBlock branch​(byte[] bytes)  
    LeafBlock leaf​(byte[] bytes)  
    RootBlock root​(byte[] bytes)  
    ValueBlock value​(byte[] bytes)  

    Methods inherited from class java.lang.Object

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