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

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

package org.influxdb.querybuilder.clauses;

import org.influxdb.querybuilder.Appender;
import org.influxdb.querybuilder.RawText;

public class RawTextClause extends AbstractClause {

  private final RawText value;

  public RawTextClause(final String text) {
    super("");
    this.value = new RawText(text);

    if (text == null) {
      throw new IllegalArgumentException("Missing text for expression");
    }
  }

  @Override
  public void appendTo(final StringBuilder stringBuilder) {
    Appender.appendValue(value, stringBuilder);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy