.setTransaction(InternalTransactionV4.getById(txn.getId()).getHandle());
} else if (datastoreServiceConfig.getReadPolicy().getConsistency() == Consistency.EVENTUAL) {
queryBldr.getReadOptionsBuilder().setReadConsistency(ReadConsistency.EVENTUAL);
}
RunQueryRequest request = queryBldr.build();
Future<RunQueryResponse> result = datastoreProxy.runQuery(request);
if (datastoreServiceConfig.getApiVersion() == ApiVersion.CLOUD_DATASTORE) {
return new QueryResultsSourceCloudDatastore(datastoreServiceConfig.getDatastoreCallbacks(),
fetchOptions, txn, query, request, result, datastoreProxy);