io.ebeaninternal.server.dto.DtoQueryPlanBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.dto;
import io.ebean.meta.MetricVisitor;
import io.ebeaninternal.metric.QueryPlanMetric;
import io.ebeaninternal.metric.TimedMetric;
abstract class DtoQueryPlanBase implements DtoQueryPlan {
private final QueryPlanMetric planMetric;
private final TimedMetric metric;
DtoQueryPlanBase(DtoMappingRequest request) {
this.planMetric = request.createMetric();
this.metric = planMetric.getMetric();
}
@Override
public void collect(long exeTime, int rows) {
metric.add(exeTime, rows);
}
@Override
public void visit(MetricVisitor visitor) {
planMetric.visit(visitor);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy