All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.influxdb.querybuilder.clauses.SimpleFromClause Maven / Gradle / Ivy

There is a newer version: 2.24
Show newest version
package org.influxdb.querybuilder.clauses;

import static org.influxdb.querybuilder.Appender.appendName;

public class SimpleFromClause extends FromClause {

  private final String table;

  public SimpleFromClause(final String table) {
    if (table == null) {
      throw new IllegalArgumentException("Provide a valid table name");
    }
    this.table = table;
  }

  @Override
  public void appendTo(final StringBuilder stringBuilder) {
    appendName(table, stringBuilder);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy