@InterfaceStability.Committed @InterfaceAudience.Public public class AnalyticsMetrics extends Object implements Serializable
Represents Analytics Metrics as part of the response.
Modifier and Type | Field and Description |
---|---|
static AnalyticsMetrics |
EMPTY_METRICS
The empty metrics object.
|
static String |
NO_TIME
Human-readable representation of the absence of duration, as “0s”.
|
Constructor and Description |
---|
AnalyticsMetrics(JsonObject rawMetrics) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
asJsonObject()
Exposes the underlying raw form of the metrics, as a
JsonObject . |
String |
elapsedTime() |
int |
errorCount() |
String |
executionTime() |
int |
mutationCount() |
long |
processedObjects() |
int |
resultCount() |
long |
resultSize() |
int |
sortCount() |
String |
toString() |
int |
warningCount() |
public static final AnalyticsMetrics EMPTY_METRICS
The empty metrics object. All numerical values will be 0 and human-readable times will be NO_TIME
.
public static final String NO_TIME
Human-readable representation of the absence of duration, as “0s”.
public AnalyticsMetrics(JsonObject rawMetrics)
public String elapsedTime()
public String executionTime()
public int sortCount()
public int resultCount()
public long resultSize()
public int mutationCount()
public int errorCount()
public int warningCount()
public long processedObjects()
public JsonObject asJsonObject()
Exposes the underlying raw form of the metrics, as a JsonObject
.
Note that values exposed as methods are cached at instantiation, so this object is not backed by the returned JsonObject.
Copyright © 2015 Couchbase, Inc.