Interface BranchBlock
- All Superinterfaces:
Block
- All Known Implementing Classes:
BranchBlockV1
public interface BranchBlock extends Block
-
Field Summary
Fields Modifier and Type Field Description static booleanLOG_COMPARISONS -
Method Summary
Modifier and Type Method Description intchildBlock(int recordIndex)io.datarouter.scanner.Scanner<Integer>childBlockIds()BlockKeychildBranchBlockKey(SnapshotKey snapshotKey, int childBlockId)default intfindChildBlockIndex(byte[] searchKey)default intfindChildBlockIndex(long recordId)io.datarouter.bytes.Byteskey(int index)default io.datarouter.scanner.Scanner<byte[]>keyCopies()io.datarouter.scanner.Scanner<io.datarouter.bytes.Bytes>keys()default io.datarouter.bytes.ByteslastKey()default longlastRecordId()BlockKeyleafBlockKey(SnapshotKey snapshotKey, int leafBlockId)intlevel()level 0 is a leaf index pointing at LeafBlocksintnumRecords()longrecordId(int index)StringtoDetailedString()
-
Field Details
-
LOG_COMPARISONS
static final boolean LOG_COMPARISONS- See Also:
- Constant Field Values
-
-
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
-
leafBlockKey
-
toDetailedString
String toDetailedString()
-