Package com.couchbase.client.java.query
Enum QueryProfile
- java.lang.Object
-
- java.lang.Enum<QueryProfile>
-
- com.couchbase.client.java.query.QueryProfile
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryProfile>
@Volatile public enum QueryProfile extends Enum<QueryProfile>
Query profiling information received from the query executing engine- Since:
- 3.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OFF
No profiling information is added to the query response.PHASES
The query response includes a profile section with stats and details about various phases of the query plan and execution.TIMINGS
Besides the phase times, the profile section of the query response document will include a full query plan with timing and information about the number of processed documents at each phase.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryProfile
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryProfile[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final QueryProfile OFF
No profiling information is added to the query response.
-
PHASES
public static final QueryProfile PHASES
The query response includes a profile section with stats and details about various phases of the query plan and execution. Three phase times will be included in the system:active_requests and system:completed_requests monitoring keyspaces.
-
TIMINGS
public static final QueryProfile TIMINGS
Besides the phase times, the profile section of the query response document will include a full query plan with timing and information about the number of processed documents at each phase. This information will be included in the system:active_requests and system:completed_requests keyspaces.
-
-
Method Detail
-
values
public static QueryProfile[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryProfile c : QueryProfile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryProfile valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-