use of com.tencent.angel.psagent.matrix.transport.adapter.IndexGetRowsRequest in project angel by Tencent.
the class IndexGetRowsHandler method handle.
@Override
public void handle(FutureResult finalResult, UserRequest userRequest, ResponseCache responseCache) {
IndexGetRowsRequest indexGetRowsRequest = (IndexGetRowsRequest) userRequest;
MapResponseCache cache = (MapResponseCache) responseCache;
ConcurrentHashMap<Request, Response> responses = cache.getResponses();
// Merge
Vector[] result = merge(indexGetRowsRequest, responses);
// Set final result
finalResult.set(result);
}
Aggregations