Search in sources :

Example 1 with GetPartitionResponse

use of com.tencent.angel.ps.server.data.response.GetPartitionResponse in project angel by Tencent.

the class GetPartHandler method handle.

@Override
public ResponseData handle(RequestHeader header, RequestData data) throws Exception {
    GetPartitionRequest request = (GetPartitionRequest) data;
    ServerPartition partition = MatrixUtils.getPart(context.getMatrixStorageManager(), header.matrixId, header.partId);
    return new GetPartitionResponse(partition);
}
Also used : GetPartitionResponse(com.tencent.angel.ps.server.data.response.GetPartitionResponse) GetPartitionRequest(com.tencent.angel.ps.server.data.request.GetPartitionRequest) ServerPartition(com.tencent.angel.ps.storage.partition.ServerPartition)

Aggregations

GetPartitionRequest (com.tencent.angel.ps.server.data.request.GetPartitionRequest)1 GetPartitionResponse (com.tencent.angel.ps.server.data.response.GetPartitionResponse)1 ServerPartition (com.tencent.angel.ps.storage.partition.ServerPartition)1