Class ScanningBlockReader
java.lang.Object
io.datarouter.filesystem.snapshot.reader.block.ScanningBlockReader
public class ScanningBlockReader extends Object
Thread-safe
The parallel operations perform the potentially high-latency block fetches
The blocks are passed to the parent scanner which parses them. The parsing could potentially be done in the parallel
section, but it would result in more objects being allocated at the same time. The parsing of the blocks is pretty
inexpensive, so this version leaves that for the parent reader thread.
-
Constructor Summary
Constructors Constructor Description ScanningBlockReader(SnapshotKey snapshotKey, ExecutorService exec, int numThreads, int numBlocks, BlockLoader blockLoader) -
Method Summary
Modifier and Type Method Description io.datarouter.scanner.Scanner<LeafBlock>scanLeafBlocks(long fromRecordIdInclusive)
-
Constructor Details
-
ScanningBlockReader
public ScanningBlockReader(SnapshotKey snapshotKey, ExecutorService exec, int numThreads, int numBlocks, BlockLoader blockLoader)
-
-
Method Details