use of com.tencent.angel.ps.server.data.response.UpdateResponse in project angel by Tencent.
the class BasicStreamUpdateHandler method handle.
@Override
public ResponseData handle(RequestHeader header, RequestData data) throws Exception {
UpdateRequest request = (UpdateRequest) data;
ServerPartition part = MatrixUtils.getPart(context.getMatrixStorageManager(), header.matrixId, header.partId);
ByteBuf in = request.getInputBuffer();
// Filter comp key value
ByteBufSerdeUtils.deserializeBoolean(in);
part.update(in, request.getOp());
return new UpdateResponse();
}
use of com.tencent.angel.ps.server.data.response.UpdateResponse in project angel by Tencent.
the class UpdateHandler method parseResponse.
@Override
public ResponseData parseResponse(ByteBuf in) {
// Just
UpdateResponse response = new UpdateResponse();
response.deserialize(in);
return response;
}
Aggregations