use of alluxio.worker.block.io.StoreBlockReader in project alluxio by Alluxio.
the class TieredBlockStore method getBlockReader.
@Override
public BlockReader getBlockReader(long sessionId, long blockId, long lockId) throws BlockDoesNotExistException, InvalidWorkerStateException, IOException {
LOG.debug("getBlockReader: sessionId={}, blockId={}, lockId={}", sessionId, blockId, lockId);
mLockManager.validateLock(sessionId, blockId, lockId);
try (LockResource r = new LockResource(mMetadataReadLock)) {
BlockMeta blockMeta = mMetaManager.getBlockMeta(blockId);
return new StoreBlockReader(sessionId, blockMeta);
}
}
Aggregations