use of com.tencent.angel.ps.server.data.request.GetRowSplitRequest in project angel by Tencent.
the class GetRowHandler method handle.
@Override
public ResponseData handle(RequestHeader header, RequestData data) throws Exception {
GetRowSplitRequest request = (GetRowSplitRequest) data;
ServerRow row = MatrixUtils.getRow(context.getMatrixStorageManager(), header.matrixId, header.partId, request.getRowId());
return new GetRowSplitResponse(row);
}
use of com.tencent.angel.ps.server.data.request.GetRowSplitRequest in project angel by Tencent.
the class GetRowHandler method parseRequest.
@Override
public RequestData parseRequest(ByteBuf in) {
GetRowSplitRequest request = new GetRowSplitRequest();
request.deserialize(in);
return request;
}
use of com.tencent.angel.ps.server.data.request.GetRowSplitRequest in project angel by Tencent.
the class UserRequestAdapter method sendGetRowRequest.
private void sendGetRowRequest(MatrixTransportClient matrixClient, int userRequestId, int matrixId, int rowId, int partId) {
// Request header
RequestHeader header = createRequestHeader(userRequestId, TransportMethod.GET_ROWSPLIT, matrixId, partId);
// Request body
GetRowSplitRequest requestData = new GetRowSplitRequest(rowId);
// Request
Request request = new Request(header, requestData);
// Send the request
matrixClient.sendGetRequest(request);
}
Aggregations