|
2 | 2 |
|
3 | 3 | import com.couchbase.client.java.json.JsonObject;
|
4 | 4 | import com.couchbase.client.java.query.ReactiveQueryResult;
|
| 5 | +import org.jetbrains.annotations.NotNull; |
5 | 6 | import reactor.core.publisher.Mono;
|
6 | 7 |
|
7 | 8 | import java.io.InputStream;
|
@@ -45,18 +46,17 @@ public class CouchbaseResultSet implements ResultSet {
|
45 | 46 | private CouchbaseResultSetMetaData meta;
|
46 | 47 | private boolean isClosed = false;
|
47 | 48 |
|
48 |
| - CouchbaseResultSet(Statement statement, Mono<ReactiveQueryResult> queryResult, boolean returnNullStrings) { |
| 49 | + CouchbaseResultSet(@NotNull Statement statement, @NotNull Mono<ReactiveQueryResult> queryResult, |
| 50 | + boolean returnNullStrings) { |
49 | 51 | this.statement = statement;
|
50 | 52 | this.stream = queryResult.flux()
|
51 | 53 | .flatMap(ReactiveQueryResult::rowsAsObject)
|
52 |
| - .doOnRequest(x -> System.err.println("Requested next: " + x)) |
53 |
| - .doOnCancel(() -> System.err.println("Cancel this flux")) |
54 | 54 | .toStream();
|
55 | 55 | this.iterator = stream.iterator();
|
56 | 56 | this.returnNullStrings = returnNullStrings;
|
57 | 57 | }
|
58 | 58 |
|
59 |
| - CouchbaseResultSet(Statement statement, Mono<ReactiveQueryResult> queryResult) { |
| 59 | + CouchbaseResultSet(@NotNull Statement statement, @NotNull Mono<ReactiveQueryResult> queryResult) { |
60 | 60 | this(statement, queryResult, true);
|
61 | 61 | }
|
62 | 62 |
|
@@ -85,7 +85,6 @@ public boolean next() throws SQLException {
|
85 | 85 |
|
86 | 86 | @Override
|
87 | 87 | public void close() {
|
88 |
| - System.out.println("Close called"); |
89 | 88 | if (stream != null) {
|
90 | 89 | stream.close();
|
91 | 90 | iterator = Collections.emptyIterator();
|
@@ -297,7 +296,6 @@ public SQLWarning getWarnings() throws SQLException {
|
297 | 296 |
|
298 | 297 | @Override
|
299 | 298 | public void clearWarnings() {
|
300 |
| - // todo |
301 | 299 | }
|
302 | 300 |
|
303 | 301 | @Override
|
@@ -425,7 +423,6 @@ public int getFetchDirection() {
|
425 | 423 |
|
426 | 424 | @Override
|
427 | 425 | public void setFetchSize(int rows) {
|
428 |
| - // todo |
429 | 426 | }
|
430 | 427 |
|
431 | 428 | @Override
|
|
0 commit comments