org.influxdb.querybuilder.clauses.SimpleClause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of influxdb-java Show documentation
Show all versions of influxdb-java Show documentation
Java API to access the InfluxDB REST API
The newest version!
package org.influxdb.querybuilder.clauses;
import org.influxdb.querybuilder.Appender;
public class SimpleClause extends AbstractClause {
private final String op;
private final Object value;
public SimpleClause(final String name, final String op, final Object value) {
super(name);
this.op = op;
this.value = value;
}
@Override
public void appendTo(final StringBuilder stringBuilder) {
Appender.appendName(name, stringBuilder).append(" ").append(op).append(" ");
Appender.appendValue(value, stringBuilder);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy