Interface BranchBlock

All Superinterfaces:
Block
All Known Implementing Classes:
BranchBlockV1

public interface BranchBlock
extends Block
  • Field Details

  • Method Details

    • level

      int level()
      level 0 is a leaf index pointing at LeafBlocks
      Returns:
      level
    • numRecords

      int numRecords()
    • recordId

      long recordId​(int index)
    • key

      io.datarouter.bytes.Bytes key​(int index)
    • keys

      io.datarouter.scanner.Scanner<io.datarouter.bytes.Bytes> keys()
    • lastKey

      default io.datarouter.bytes.Bytes lastKey()
    • keyCopies

      default io.datarouter.scanner.Scanner<byte[]> keyCopies()
    • childBlock

      int childBlock​(int recordIndex)
    • lastRecordId

      default long lastRecordId()
    • findChildBlockIndex

      default int findChildBlockIndex​(long recordId)
    • findChildBlockIndex

      default int findChildBlockIndex​(byte[] searchKey)
    • childBlockIds

      io.datarouter.scanner.Scanner<Integer> childBlockIds()
    • childBranchBlockKey

      BlockKey childBranchBlockKey​(SnapshotKey snapshotKey, int childBlockId)
    • leafBlockKey

      BlockKey leafBlockKey​(SnapshotKey snapshotKey, int leafBlockId)
    • toDetailedString

      String toDetailedString()