2121import java .util .Iterator ;
2222import java .util .List ;
2323
24- import org .neo4j .driver .v1 .exceptions .ClientException ;
2524import org .neo4j .driver .v1 .exceptions .NoSuchRecordException ;
2625import org .neo4j .driver .v1 .summary .ResultSummary ;
2726import org .neo4j .driver .v1 .util .Function ;
@@ -80,7 +79,7 @@ public interface StatementResult extends Iterator<Record>
8079 * Return the first record in the result, failing if there is not exactly
8180 * one record left in the stream
8281 *
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 .
8483 *
8584 * @return the first and only record in the stream
8685 * @throws NoSuchRecordException if there is not exactly one record left in the stream
@@ -107,7 +106,6 @@ public interface StatementResult extends Iterator<Record>
107106 *
108107 * Calling this method exhausts the result.
109108 *
110- * @throws ClientException if the result has already been used
111109 * @return list of all remaining immutable records
112110 */
113111 List <Record > list ();
@@ -124,7 +122,6 @@ public interface StatementResult extends Iterator<Record>
124122 *
125123 * Calling this method exhausts the result.
126124 *
127- * @throws ClientException if the result has already been used
128125 * @param mapFunction a function to map from Value to T. See {@link Values} for some predefined functions, such
129126 * as {@link Values#ofBoolean()}, {@link Values#ofList(Function)}.
130127 * @param <T> the type of result list elements
@@ -143,7 +140,7 @@ public interface StatementResult extends Iterator<Record>
143140 * }
144141 * </pre>
145142 *
146- * @return a summary for the whole query
143+ * @return a summary for the whole query result
147144 */
148145 ResultSummary consume ();
149146}
0 commit comments