Enum MySqlShowProfileStatement.Type
- java.lang.Object
-
- java.lang.Enum<MySqlShowProfileStatement.Type>
-
- com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlShowProfileStatement.Type
-
- All Implemented Interfaces:
Serializable,Comparable<MySqlShowProfileStatement.Type>
- Enclosing class:
- MySqlShowProfileStatement
public static enum MySqlShowProfileStatement.Type extends Enum<MySqlShowProfileStatement.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLBLOCK_IOCONTEXT_SWITCHESCPUIPCMEMORYPAGE_FAULTSSOURCESWAPS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MySqlShowProfileStatement.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static MySqlShowProfileStatement.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final MySqlShowProfileStatement.Type ALL
-
BLOCK_IO
public static final MySqlShowProfileStatement.Type BLOCK_IO
-
CONTEXT_SWITCHES
public static final MySqlShowProfileStatement.Type CONTEXT_SWITCHES
-
CPU
public static final MySqlShowProfileStatement.Type CPU
-
IPC
public static final MySqlShowProfileStatement.Type IPC
-
MEMORY
public static final MySqlShowProfileStatement.Type MEMORY
-
PAGE_FAULTS
public static final MySqlShowProfileStatement.Type PAGE_FAULTS
-
SOURCE
public static final MySqlShowProfileStatement.Type SOURCE
-
SWAPS
public static final MySqlShowProfileStatement.Type SWAPS
-
-
Field Detail
-
name
public final String name
-
-
Method Detail
-
values
public static MySqlShowProfileStatement.Type[] 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 (MySqlShowProfileStatement.Type c : MySqlShowProfileStatement.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MySqlShowProfileStatement.Type 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
-
-