net.ravendb.client.documents.queries.timings.QueryTimings Maven / Gradle / Ivy
package net.ravendb.client.documents.queries.timings;
import net.ravendb.client.documents.queries.QueryResult;
import java.util.Map;
public class QueryTimings {
private long durationInMs;
private Map timings;
public long getDurationInMs() {
return durationInMs;
}
public void setDurationInMs(long durationInMs) {
this.durationInMs = durationInMs;
}
public Map getTimings() {
return timings;
}
public void setTimings(Map timings) {
this.timings = timings;
}
public void update(QueryResult queryResult) {
durationInMs = 0;
timings = null;
if (queryResult.getTimings() == null) {
return;
}
durationInMs = queryResult.getTimings().getDurationInMs();
timings = queryResult.getTimings().getTimings();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy