Skip to content

Commit

Permalink
fix: queryRows comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenHoangSon96 committed Jan 16, 2025
1 parent 8f406b0 commit 1b5601c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/influxdb/v3/client/InfluxDBClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ Stream<Object[]> query(@Nonnull final String query,
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.query("select * from cpu where host=$host",;
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.queryRows("select * from cpu where host=$host",
* Map.of("host", "server-a"), options)) {
* rows.forEach(row -&gt; {
* // process row
* }
* });
* </pre>
*
* @param query the query string to execute, cannot be null
* @param query the query string to execute, cannot be null
* @return Batches of rows returned by the query
*/
@Nonnull
Expand All @@ -206,15 +206,15 @@ Stream<Object[]> query(@Nonnull final String query,
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.query("select * from cpu where host=$host",;
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.queryRows("select * from cpu where host=$host",
* Map.of("host", "server-a"), options)) {
* rows.forEach(row -&gt; {
* // process row
* }
* });
* </pre>
*
* @param query the query string to execute, cannot be null
* @param query the query string to execute, cannot be null
* @param parameters query named parameters
* @return Batches of rows returned by the query
*/
Expand All @@ -226,15 +226,15 @@ Stream<Object[]> query(@Nonnull final String query,
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.query("select * from cpu where host=$host",;
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.queryRows("select * from cpu where host=$host",
* Map.of("host", "server-a"), options)) {
* rows.forEach(row -&gt; {
* // process row
* }
* });
* </pre>
*
* @param query the query string to execute, cannot be null
* @param query the query string to execute, cannot be null
* @param options the options for querying data from InfluxDB
* @return Batches of rows returned by the query
*/
Expand All @@ -246,7 +246,7 @@ Stream<Object[]> query(@Nonnull final String query,
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.query("select * from cpu where host=$host",;
* try (Stream&lt;Map&lt;String, Object&gt;&gt; rows = client.queryRows("select * from cpu where host=$host",
* Map.of("host", "server-a"), options)) {
* rows.forEach(row -&gt; {
* // process row
Expand Down

0 comments on commit 1b5601c

Please sign in to comment.