Tuple args = Tuple.create(ByteBuffer.wrap(call.getBody()).order(ByteOrder.LITTLE_ENDIAN), ByteOrder.LITTLE_ENDIAN);
return packResult(request, callStub.call(this, call.getProcName(), call.getFlags(), args), Call.OP_CODE);
}
private Response executeSelect(Request request) {
Select select = ((Select) request);
List<Tuple> result = new ArrayList<Tuple>();
for (int i = 0; i < select.getBody().length; i++) {
Tuple key = Tuple.create(ByteBuffer.wrap(select.getBody()[i]).order(ByteOrder.LITTLE_ENDIAN), ByteOrder.LITTLE_ENDIAN);
result.addAll(get(select.getSpace(), select.getIndex(), key));
}
shiftAndLimit(select.getOffset(), select.getLimit(), result);
return packResult(request, result, Select.OP_CODE);
}