Class ClassicCoreQueryMetrics
- java.lang.Object
-
- com.couchbase.client.core.classic.query.ClassicCoreQueryMetrics
-
- All Implemented Interfaces:
CoreQueryMetrics
@Internal public class ClassicCoreQueryMetrics extends Object implements CoreQueryMetrics
-
-
Constructor Summary
Constructors Constructor Description ClassicCoreQueryMetrics(byte[] raw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
elapsedTime()
long
errorCount()
Duration
executionTime()
long
mutationCount()
long
resultCount()
long
resultSize()
long
sortCount()
long
warningCount()
-
-
-
Method Detail
-
elapsedTime
public Duration elapsedTime()
- Specified by:
elapsedTime
in interfaceCoreQueryMetrics
- Returns:
- The total time taken for the request, that is the time from when the request was received until the results were returned, in a human-readable format (eg. 123.45ms for a little over 123 milliseconds).
-
executionTime
public Duration executionTime()
- Specified by:
executionTime
in interfaceCoreQueryMetrics
- Returns:
- The time taken for the execution of the request, that is the time from when query execution started until the results were returned, in a human-readable format (eg. 123.45ms for a little over 123 milliseconds).
-
sortCount
public long sortCount()
- Specified by:
sortCount
in interfaceCoreQueryMetrics
- Returns:
- the total number of results selected by the engine before restriction through LIMIT clause.
-
resultCount
public long resultCount()
- Specified by:
resultCount
in interfaceCoreQueryMetrics
- Returns:
- The total number of objects in the results.
-
resultSize
public long resultSize()
- Specified by:
resultSize
in interfaceCoreQueryMetrics
- Returns:
- The total number of bytes in the results.
-
mutationCount
public long mutationCount()
- Specified by:
mutationCount
in interfaceCoreQueryMetrics
- Returns:
- The number of mutations that were made during the request.
-
errorCount
public long errorCount()
- Specified by:
errorCount
in interfaceCoreQueryMetrics
- Returns:
- The number of errors that occurred during the request.
-
warningCount
public long warningCount()
- Specified by:
warningCount
in interfaceCoreQueryMetrics
- Returns:
- The number of warnings that occurred during the request.
-
-