Skip to content

Commit 6aa539d

Browse files
author
Alexandre Dutra
committed
Clarify that calling wasApplied does not consume the next row
1 parent a6fd275 commit 6aa539d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

driver-core/src/main/java/com/datastax/driver/core/ResultSet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public interface ResultSet extends PagingIterable<ResultSet, Row> {
5656
* rs.one().getBool("[applied]");
5757
* </pre>
5858
*
59+
* Except that this method peeks at the next row without consuming it.
60+
*
5961
* <p>For consistency, this method always returns {@code true} for non-conditional queries
6062
* (although there is no reason to call the method in that case). This is also the case for
6163
* conditional DDL statements ({@code CREATE KEYSPACE... IF NOT EXISTS}, {@code CREATE TABLE... IF

0 commit comments

Comments
 (0)