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

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

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

import org.influxdb.querybuilder.QueryStringBuilder;

public class SubQueryFromClause extends FromClause {

  private final QueryStringBuilder queryStringBuilder;

  public SubQueryFromClause(final QueryStringBuilder queryStringBuilder) {
    if (queryStringBuilder == null) {
      throw new IllegalArgumentException("Provide a valid value");
    }
    this.queryStringBuilder = queryStringBuilder;
  }

  @Override
  public void appendTo(final StringBuilder stringBuilder) {
    stringBuilder.append("(");
    queryStringBuilder.buildQueryString(stringBuilder);
    stringBuilder.append(")");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy