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

com.outbrain.cqllib.CqlStatement Maven / Gradle / Ivy

The newest version!
package com.outbrain.cqllib;

import com.datastax.driver.core.Statement;

import java.util.List;

/**
 * Created by guyk on 7/9/14.
 * a combination of a statement + tags for metrics
 */
public class CqlStatement {
  private final List metrics;
  private final Statement statement;


  CqlStatement(final Statement statement, final List metrics) {
    if (metrics.isEmpty()) {
      throw new IllegalArgumentException("expecting non empty tags");
    }
    this.statement = statement;
    this.metrics = metrics;
  }

  public List getTagMetrics() {
    return metrics;
  }

  public Statement getStatement() {
    return statement;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy