File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,12 +8,23 @@ sure you don't accidentally ignore their result:
88``` java
99BoundStatement boundSelect = preparedSelect. bind();
1010
11- // This doesn't work: setInt doesn 't modify boundSelect in place:
11+ // This doesn't work: setInt and setPageSize don 't modify boundSelect in place:
1212boundSelect. setInt(" k" , key);
13+ boundSelect. setPageSize(1000 );
1314session. execute(boundSelect);
1415
1516// Instead, do this:
16- boundSelect = boundSelect. setInt(" k" , key);
17+ boundSelect = boundSelect. setInt(" k" , key). setPageSize(1000 );
18+ ```
19+
20+ The driver also provides builders:
21+
22+ ``` java
23+ BoundStatement boundSelect =
24+ preparedSelect. boundStatementBuilder()
25+ .setInt(" k" , key)
26+ .withPageSize(1000 )
27+ .build();
1728```
1829
1930### Why do asynchronous methods return ` CompletionStage<T> ` instead of ` CompletableFuture<T> ` ?
You can’t perform that action at this time.
0 commit comments