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 agains the database.
|
org.influxdb.dto.QueryResult |
query(org.influxdb.dto.Query query,
TimeUnit timeUnit)
Executes a query agains 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 queryorg.influxdb.dto.Pong ping()
String version()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.