Package com.tangosol.util.aggregator
Enum Class QueryRecorder.RecordType
- All Implemented Interfaces:
Serializable
,Comparable<QueryRecorder.RecordType>
,Constable
- Enclosing class:
QueryRecorder<K,
V>
RecordType enum specifies whether the
QueryRecorder
should be
used to produce a QueryRecord
object that
contains an estimated or an actual cost of the query execution.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProduce aQueryRecord
object that contains an estimated cost of the query execution.Produce aQueryRecord
object that contains the actual cost of the query execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryRecorder.RecordType
fromInt
(int nOrdinal) Convert an integer value to an RecordTypeint
toInt()
Convert an RecordType to an integer.static QueryRecorder.RecordType
Returns the enum constant of this class with the specified name.static QueryRecorder.RecordType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
Convert an integer value to an RecordType- Parameters:
nOrdinal
- the ordinal value of an RecordType- Returns:
- the RecordType
-