use of com.tencent.angel.psagent.matrix.transport.adapter.IndexGetRowRequest in project angel by Tencent.
the class IndexGetRowHandler method handle.
@Override
public void handle(FutureResult finalResult, UserRequest userRequest, ResponseCache responseCache) {
IndexGetRowRequest indexGetRowRequest = (IndexGetRowRequest) userRequest;
MapResponseCache cache = (MapResponseCache) responseCache;
ConcurrentHashMap<Request, Response> responses = cache.getResponses();
// Merge
Vector result = merge(indexGetRowRequest, responses);
// Set matrix/row meta
result.setMatrixId(indexGetRowRequest.getMatrixId());
result.setRowId(indexGetRowRequest.getRowId());
// Set final result
finalResult.set(result);
}
Aggregations