public final RecordSet query(QueryPolicy policy, Statement statement) throws AerospikeException {
if (policy == null) {
policy = queryPolicyDefault;
}
QueryRecordExecutor executor = new QueryRecordExecutor(cluster, policy, statement);
executor.execute();
return executor.getRecordSet();
}
/**
* Execute query, apply statement's aggregation function, and return result iterator. The query