use of io.datarouter.filesystem.snapshot.reader.record.SnapshotLeafSearchResult in project datarouter by hotpads.
the class ScanningSnapshotReader method scanLeafRecords.
public Scanner<SnapshotLeafRecord> scanLeafRecords(byte[] startKey, boolean inclusive) {
var keyReader = new SnapshotKeyReader(snapshotKey, blockLoader);
LeafBlock leafBlock = keyReader.leafBlock(startKey);
SnapshotLeafSearchResult searchResult = leafBlock.search(startKey);
long fromRecordIdInclusive = searchResult.recordId(inclusive);
return scanLeafRecords(fromRecordIdInclusive);
}
Aggregations