Skip to content

Commit

Permalink
style: replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciator committed Nov 7, 2023
1 parent 6531e15 commit f467b7a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
34 changes: 17 additions & 17 deletions src/main/java/com/influxdb/v3/client/InfluxDBClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,23 @@ public interface InfluxDBClient extends AutoCloseable {
@Nonnull
Stream<Object[]> query(@Nonnull final String query, @Nonnull final QueryOptions options);

/**
* Query data from InfluxDB IOx into Point structure using FlightSQL.
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Object[]&gt; rows = client.queryPoints("select * from cpu", options)) {
* rows.forEach(row -&gt; {
* // process row
* }
* });
* </pre>
*
* @param query the SQL query string to execute, cannot be null
* @return Batches of PointValues returned by the query
*/
@Nonnull
Stream<PointValues> queryPoints(@Nonnull final String query);
/**
* Query data from InfluxDB IOx into Point structure using FlightSQL.
* <p>
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
* <pre>
* try (Stream&lt;Object[]&gt; rows = client.queryPoints("select * from cpu", options)) {
* rows.forEach(row -&gt; {
* // process row
* }
* });
* </pre>
*
* @param query the SQL query string to execute, cannot be null
* @return Batches of PointValues returned by the query
*/
@Nonnull
Stream<PointValues> queryPoints(@Nonnull final String query);

/**
* Query data from InfluxDB IOx into Point structure using FlightSQL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ public Stream<Object[]> query(@Nonnull final String query, @Nonnull final QueryO
});
}

@Nonnull
@Override
public Stream<PointValues> queryPoints(@Nonnull final String query) {
return queryPoints(query, QueryOptions.DEFAULTS);
}
@Nonnull
@Override
public Stream<PointValues> queryPoints(@Nonnull final String query) {
return queryPoints(query, QueryOptions.DEFAULTS);
}

@Nonnull
@Nonnull
@Override
public Stream<PointValues> queryPoints(@Nonnull final String query, @Nonnull final QueryOptions options) {
return queryData(query, options)
Expand Down

0 comments on commit f467b7a

Please sign in to comment.