Package com.tangosol.util.aggregator
Enum QueryRecorder.RecordType
- java.lang.Object
-
- java.lang.Enum<QueryRecorder.RecordType>
-
- com.tangosol.util.aggregator.QueryRecorder.RecordType
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryRecorder.RecordType>
- Enclosing class:
- QueryRecorder<K,V>
public static enum QueryRecorder.RecordType extends Enum<QueryRecorder.RecordType>
RecordType enum specifies whether theQueryRecorder
should be used to produce aQueryRecord
object that contains an estimated or an actual cost of the query execution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPLAIN
Produce aQueryRecord
object that contains an estimated cost of the query execution.TRACE
Produce aQueryRecord
object that contains the actual cost of the query execution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryRecorder.RecordType
fromInt(int nOrdinal)
Convert an integer value to an RecordTypeint
toInt()
Convert an RecordType to an integer.static QueryRecorder.RecordType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryRecorder.RecordType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPLAIN
public static final QueryRecorder.RecordType EXPLAIN
Produce aQueryRecord
object that contains an estimated cost of the query execution.
-
TRACE
public static final QueryRecorder.RecordType TRACE
Produce aQueryRecord
object that contains the actual cost of the query execution.
-
-
Method Detail
-
values
public static QueryRecorder.RecordType[] 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 (QueryRecorder.RecordType c : QueryRecorder.RecordType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryRecorder.RecordType 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
-
toInt
public int toInt()
Convert an RecordType to an integer.- Returns:
- the integer
-
fromInt
public static QueryRecorder.RecordType fromInt(int nOrdinal)
Convert an integer value to an RecordType- Parameters:
nOrdinal
- the ordinal value of an RecordType- Returns:
- the RecordType
-
-