21
21
import java .util .Iterator ;
22
22
import java .util .List ;
23
23
24
- import org .neo4j .driver .v1 .exceptions .ClientException ;
25
24
import org .neo4j .driver .v1 .exceptions .NoSuchRecordException ;
26
25
import org .neo4j .driver .v1 .summary .ResultSummary ;
27
26
import org .neo4j .driver .v1 .util .Function ;
@@ -80,7 +79,7 @@ public interface StatementResult extends Iterator<Record>
80
79
* Return the first record in the result, failing if there is not exactly
81
80
* one record left in the stream
82
81
*
83
- * Calling this method always exhausts the result, even when failing .
82
+ * Calling this method always exhausts the result, even when {@link NoSuchRecordException} is thrown .
84
83
*
85
84
* @return the first and only record in the stream
86
85
* @throws NoSuchRecordException if there is not exactly one record left in the stream
@@ -107,7 +106,6 @@ public interface StatementResult extends Iterator<Record>
107
106
*
108
107
* Calling this method exhausts the result.
109
108
*
110
- * @throws ClientException if the result has already been used
111
109
* @return list of all remaining immutable records
112
110
*/
113
111
List <Record > list ();
@@ -124,7 +122,6 @@ public interface StatementResult extends Iterator<Record>
124
122
*
125
123
* Calling this method exhausts the result.
126
124
*
127
- * @throws ClientException if the result has already been used
128
125
* @param mapFunction a function to map from Value to T. See {@link Values} for some predefined functions, such
129
126
* as {@link Values#ofBoolean()}, {@link Values#ofList(Function)}.
130
127
* @param <T> the type of result list elements
@@ -143,7 +140,7 @@ public interface StatementResult extends Iterator<Record>
143
140
* }
144
141
* </pre>
145
142
*
146
- * @return a summary for the whole query
143
+ * @return a summary for the whole query result
147
144
*/
148
145
ResultSummary consume ();
149
146
}
0 commit comments