public interface InfluxDBOperations<T>
| Modifier and Type | Method and Description |
|---|---|
void |
createDatabase()
Ensures that the configured database exists.
|
org.influxdb.dto.Pong |
ping()
Ping the database.
|
org.influxdb.dto.QueryResult |
query(org.influxdb.dto.Query query)
Executes a query against the database.
|
void |
query(org.influxdb.dto.Query query,
int chunkSize,
Consumer<org.influxdb.dto.QueryResult> consumer)
Execute a streaming query against the database.
|
org.influxdb.dto.QueryResult |
query(org.influxdb.dto.Query query,
TimeUnit timeUnit)
Executes a query against the database.
|
String |
version()
Return the version of the connected database.
|
void |
write(List<T> payload)
Write a set of measurements to the database.
|
void |
write(T... payload)
Write a single measurement to the database.
|
void createDatabase()
void write(T... payload)
payload - the measurement to write tovoid write(List<T> payload)
payload - the values to write toorg.influxdb.dto.QueryResult query(org.influxdb.dto.Query query)
query - the query to executeorg.influxdb.dto.QueryResult query(org.influxdb.dto.Query query,
TimeUnit timeUnit)
query - the query to executetimeUnit - the time unit to be used for the queryvoid query(org.influxdb.dto.Query query,
int chunkSize,
Consumer<org.influxdb.dto.QueryResult> consumer)
query - the query to executechunkSize - the number of QueryResults to process in one chunkconsumer - the consumer to invoke for each received QueryResultorg.influxdb.dto.Pong ping()
String version()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.