use of org.apache.accumulo.tserver.session.SummarySession in project accumulo by apache.
the class ThriftClientHandler method contiuneGetSummaries.
@Override
public TSummaries contiuneGetSummaries(TInfo tinfo, long sessionId) throws NoSuchScanIDException, TException {
SummarySession session = (SummarySession) server.sessionManager.getSession(sessionId);
if (session == null) {
throw new NoSuchScanIDException();
}
Future<SummaryCollection> future = session.getFuture();
try {
TSummaries tsums = getSummaries(future);
server.sessionManager.removeSession(sessionId);
return tsums;
} catch (TimeoutException e) {
return handleTimeout(sessionId);
}
}
Aggregations