use of org.neo4j.cypher.internal.result.string.ResultStringBuilder in project neo4j by neo4j.
the class ResultSubscriber method writeAsStringTo.
@Override
public void writeAsStringTo(PrintWriter writer) {
ResultStringBuilder stringBuilder = ResultStringBuilder.apply(execution.fieldNames(), context);
try {
// paths
if (this.hasFetchedNext()) {
stringBuilder.addRow(new ResultRowImpl(this.getNextObject()));
}
accept(stringBuilder);
stringBuilder.result(writer, statistics);
for (Notification notification : getNotifications()) {
writer.println(notification.getDescription());
}
} catch (Exception e) {
close();
throw converted(e);
}
}
Aggregations