@@ -205,7 +205,8 @@ Stream<Object[]> query(@Nonnull final String query,
205
205
* <p>
206
206
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
207
207
* <pre>
208
- * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=$host", Map.of("host", "server-a"))) {
208
+ * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=$host",
209
+ * Map.of("host", "server-a"))) {
209
210
* rows.forEach(row -> {
210
211
* // process row
211
212
* })
@@ -224,7 +225,8 @@ Stream<Object[]> query(@Nonnull final String query,
224
225
* <p>
225
226
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
226
227
* <pre>
227
- * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=intel", options)) {
228
+ * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=intel",
229
+ * options)) {
228
230
* rows.forEach(row -> {
229
231
* // process row
230
232
* })
@@ -243,7 +245,8 @@ Stream<Object[]> query(@Nonnull final String query,
243
245
* <p>
244
246
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
245
247
* <pre>
246
- * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=$host", Map.of("host", "server-a"), options)) {
248
+ * try (Stream<Map<String, Object>> rows = client.queryRows("select * from cpu where host=$host",
249
+ * Map.of("host", "server-a"), options)) {
247
250
* rows.forEach(row -> {
248
251
* // process row
249
252
* })
0 commit comments