use of co.cask.cdap.proto.ViewDetail in project cdap by caskdata.
the class InMemoryViewStore method get.
@Override
public ViewDetail get(StreamViewId viewId) throws NotFoundException {
Lock lock = viewsLock.readLock();
lock.lock();
try {
if (!views.containsRow(viewId)) {
throw new NotFoundException(viewId);
}
return new ViewDetail(viewId.getEntityName(), views.get(viewId, viewId.getParent()));
} finally {
lock.unlock();
}
}
Aggregations