2929
3030/**
3131 * The result of running a Cypher query, conceptually a stream of {@link Record records}.
32- *
32+ * <p>
3333 * The standard way of navigating through the result returned by the database is to
3434 * {@link #next() iterate} over it.
35- *
35+ * <p>
3636 * Results are valid until the next query is run or until the end of the current transaction,
3737 * whichever comes first. To keep a result around while further queries are run, or to use a result outside the scope
3838 * of the current transaction, see {@link #list()}.
4242 * In order to handle very large results, and to minimize memory overhead and maximize
4343 * performance, results are retrieved lazily. Please see {@link QueryRunner} for
4444 * important details on the effects of this.
45- *
45+ * <p>
4646 * The short version is that, if you want a hard guarantee that the underlying query
4747 * has completed, you need to either call {@link Resource#close()} on the {@link Transaction}
4848 * or {@link Session} that created this result, or you need to use the result.
49- *
49+ * <p>
5050 * Calling any method on this interface will guarantee that any write operation has completed on
5151 * the remote database.
5252 *
@@ -79,7 +79,7 @@ public interface Result extends Iterator<Record> {
7979 /**
8080 * Return the first record in the result, failing if there is not exactly
8181 * one record left in the stream
82- *
82+ * <p>
8383 * Calling this method always exhausts the result, even when {@link NoSuchRecordException} is thrown.
8484 *
8585 * @return the first and only record in the stream
@@ -108,12 +108,12 @@ public interface Result extends Iterator<Record> {
108108 * Retrieve and store the entire result stream.
109109 * This can be used if you want to iterate over the stream multiple times or to store the
110110 * whole result for later use.
111- *
111+ * <p>
112112 * Note that this method can only be used if you know that the query that
113113 * yielded this result returns a finite stream. Some queries can yield
114114 * infinite results, in which case calling this method will lead to running
115115 * out of memory.
116- *
116+ * <p>
117117 * Calling this method exhausts the result.
118118 *
119119 * @return list of all remaining immutable records
@@ -124,12 +124,12 @@ public interface Result extends Iterator<Record> {
124124 * Retrieve and store a projection of the entire result.
125125 * This can be used if you want to iterate over the stream multiple times or to store the
126126 * whole result for later use.
127- *
127+ * <p>
128128 * Note that this method can only be used if you know that the query that
129129 * yielded this result returns a finite stream. Some queries can yield
130130 * infinite results, in which case calling this method will lead to running
131131 * out of memory.
132- *
132+ * <p>
133133 * Calling this method exhausts the result.
134134 *
135135 * @param mapFunction a function to map from Record to T. See {@link Records} for some predefined functions.
0 commit comments