Search in sources :

Example 1 with GetRowSplitRequest

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);
}
Also used : GetRowSplitRequest(com.tencent.angel.ps.server.data.request.GetRowSplitRequest) GetRowSplitResponse(com.tencent.angel.ps.server.data.response.GetRowSplitResponse) ServerRow(com.tencent.angel.ps.storage.vector.ServerRow)

Example 2 with GetRowSplitRequest

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;
}
Also used : GetRowSplitRequest(com.tencent.angel.ps.server.data.request.GetRowSplitRequest)

Example 3 with GetRowSplitRequest

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);
}
Also used : GetRowSplitRequest(com.tencent.angel.ps.server.data.request.GetRowSplitRequest) GetRowSplitRequest(com.tencent.angel.ps.server.data.request.GetRowSplitRequest) UpdateRequest(com.tencent.angel.ps.server.data.request.UpdateRequest) Request(com.tencent.angel.ps.server.data.request.Request) UpdateUDFRequest(com.tencent.angel.ps.server.data.request.UpdateUDFRequest) GetRowsSplitRequest(com.tencent.angel.ps.server.data.request.GetRowsSplitRequest) IndexPartGetRowRequest(com.tencent.angel.ps.server.data.request.IndexPartGetRowRequest) GetUDFRequest(com.tencent.angel.ps.server.data.request.GetUDFRequest) IndexPartGetRowsRequest(com.tencent.angel.ps.server.data.request.IndexPartGetRowsRequest) RequestHeader(com.tencent.angel.ps.server.data.request.RequestHeader)

Aggregations

GetRowSplitRequest (com.tencent.angel.ps.server.data.request.GetRowSplitRequest)3 GetRowsSplitRequest (com.tencent.angel.ps.server.data.request.GetRowsSplitRequest)1 GetUDFRequest (com.tencent.angel.ps.server.data.request.GetUDFRequest)1 IndexPartGetRowRequest (com.tencent.angel.ps.server.data.request.IndexPartGetRowRequest)1 IndexPartGetRowsRequest (com.tencent.angel.ps.server.data.request.IndexPartGetRowsRequest)1 Request (com.tencent.angel.ps.server.data.request.Request)1 RequestHeader (com.tencent.angel.ps.server.data.request.RequestHeader)1 UpdateRequest (com.tencent.angel.ps.server.data.request.UpdateRequest)1 UpdateUDFRequest (com.tencent.angel.ps.server.data.request.UpdateUDFRequest)1 GetRowSplitResponse (com.tencent.angel.ps.server.data.response.GetRowSplitResponse)1 ServerRow (com.tencent.angel.ps.storage.vector.ServerRow)1