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

io.ebeaninternal.server.profile.DQueryPlanCollector Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
package io.ebeaninternal.server.profile;

import io.ebean.meta.MetaQueryMetric;
import io.ebeaninternal.metric.QueryPlanCollector;

import java.util.ArrayList;
import java.util.List;

class DQueryPlanCollector implements QueryPlanCollector {

  private final boolean reset;

  private final List list = new ArrayList<>();

  DQueryPlanCollector(boolean reset) {
    this.reset = reset;
  }

  @Override
  public boolean isReset() {
    return reset;
  }

  @Override
  public void add(MetaQueryMetric stats) {
    list.add(stats);
  }

  @Override
  public List complete() {
    return list;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy