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

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

The newest version!
package org.influxdb.querybuilder.clauses;

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

import java.util.List;

public class MultipleFromClause extends FromClause {

  private final List tables;

  public MultipleFromClause(final List tables) {
    if (tables == null || tables.size() == 0) {
      throw new IllegalArgumentException("Tables names should be specified");
    }
    this.tables = tables;
  }

  @Override
  public void appendTo(final StringBuilder stringBuilder) {
    joinAndAppendNames(stringBuilder, tables);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy