29
29
30
30
/**
31
31
* The result of running a Cypher query, conceptually a stream of {@link Record records}.
32
- *
32
+ * <p>
33
33
* The standard way of navigating through the result returned by the database is to
34
34
* {@link #next() iterate} over it.
35
- *
35
+ * <p>
36
36
* Results are valid until the next query is run or until the end of the current transaction,
37
37
* whichever comes first. To keep a result around while further queries are run, or to use a result outside the scope
38
38
* of the current transaction, see {@link #list()}.
42
42
* In order to handle very large results, and to minimize memory overhead and maximize
43
43
* performance, results are retrieved lazily. Please see {@link QueryRunner} for
44
44
* important details on the effects of this.
45
- *
45
+ * <p>
46
46
* The short version is that, if you want a hard guarantee that the underlying query
47
47
* has completed, you need to either call {@link Resource#close()} on the {@link Transaction}
48
48
* or {@link Session} that created this result, or you need to use the result.
49
- *
49
+ * <p>
50
50
* Calling any method on this interface will guarantee that any write operation has completed on
51
51
* the remote database.
52
52
*
@@ -79,7 +79,7 @@ public interface Result extends Iterator<Record> {
79
79
/**
80
80
* Return the first record in the result, failing if there is not exactly
81
81
* one record left in the stream
82
- *
82
+ * <p>
83
83
* Calling this method always exhausts the result, even when {@link NoSuchRecordException} is thrown.
84
84
*
85
85
* @return the first and only record in the stream
@@ -108,12 +108,12 @@ public interface Result extends Iterator<Record> {
108
108
* Retrieve and store the entire result stream.
109
109
* This can be used if you want to iterate over the stream multiple times or to store the
110
110
* whole result for later use.
111
- *
111
+ * <p>
112
112
* Note that this method can only be used if you know that the query that
113
113
* yielded this result returns a finite stream. Some queries can yield
114
114
* infinite results, in which case calling this method will lead to running
115
115
* out of memory.
116
- *
116
+ * <p>
117
117
* Calling this method exhausts the result.
118
118
*
119
119
* @return list of all remaining immutable records
@@ -124,12 +124,12 @@ public interface Result extends Iterator<Record> {
124
124
* Retrieve and store a projection of the entire result.
125
125
* This can be used if you want to iterate over the stream multiple times or to store the
126
126
* whole result for later use.
127
- *
127
+ * <p>
128
128
* Note that this method can only be used if you know that the query that
129
129
* yielded this result returns a finite stream. Some queries can yield
130
130
* infinite results, in which case calling this method will lead to running
131
131
* out of memory.
132
- *
132
+ * <p>
133
133
* Calling this method exhausts the result.
134
134
*
135
135
* @param mapFunction a function to map from Record to T. See {@link Records} for some predefined functions.
0 commit comments