use of org.neo4j.kernel.impl.query.QuerySubscriber in project neo4j by neo4j.
the class SnapshotExecutionEngine method executeQuery.
@Override
public Result executeQuery(String query, MapValue parameters, TransactionalContext context, boolean prePopulate) throws QueryExecutionKernelException {
QueryExecutor queryExecutor = querySubscriber -> super.executeQuery(query, parameters, context, prePopulate, querySubscriber);
ResultSubscriber resultSubscriber = new ResultSubscriber(context);
MaterialisedResult materialisedResult = executeWithRetries(query, context, queryExecutor);
QueryExecution queryExecution = materialisedResult.stream(resultSubscriber);
resultSubscriber.init(queryExecution);
return resultSubscriber;
}
Aggregations