if (operationHandle.hasResultSet()) {
RowSet rowSet = getCliService().fetchResults(operationHandle, FetchOrientation.FETCH_NEXT, size);
ImmutableList.Builder<QueryResult> rowsBuilder = ImmutableList.builder();
for (Object[] objects : rowSet) {
rowsBuilder.add(new QueryResult(Lists.newArrayList(objects)));
}
return rowsBuilder.build();
} else {
return Collections.emptyList();
}