Class FileKey

java.lang.Object
io.datarouter.filesystem.snapshot.storage.file.FileKey

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

    Fields 
    Modifier and Type Field Description
    int column  
    int fileId  
    int level  
    BlockType type  
  • Constructor Summary

    Constructors 
    Constructor Description
    FileKey​(BlockType type, int level, int column, int fileId)  
  • Method Summary

    Modifier and Type Method Description
    static FileKey branch​(int level, int fileId)  
    boolean equals​(java.lang.Object obj)  
    int hashCode()  
    static FileKey leaf​(int fileId)  
    static FileKey root()  
    java.lang.String toString()  
    static FileKey value​(int column, int fileId)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • FileKey

      public FileKey​(BlockType type, int level, int column, int fileId)
  • Method Details

    • root

      public static FileKey root()
    • branch

      public static FileKey branch​(int level, int fileId)
    • leaf

      public static FileKey leaf​(int fileId)
    • value

      public static FileKey value​(int column, int fileId)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object