Enum Class PerformanceMode
- All Implemented Interfaces:
Serializable,Comparable<PerformanceMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PerformanceModeget()Returns the globally configuredPerformanceMode.static voidset(PerformanceMode performanceMode) Sets the globally configuredPerformanceModefor query execution.static PerformanceModeReturns the enum constant of this class with the specified name.static PerformanceMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Database query execution + client network + client processing.Rows are emitted from the database and processed by the client (e.g. printed to stdout).
This is the default mode.
-
NETWORK
Database query execution + client network.Rows are discarded by the client after wire processing but before the rows are processed (e.g. printed to stdout).
This includes:
- network link
- network deserialization
- wire format deserialization
This mode is useful when the suspected performance bottleneck is client wire processing. Use in conjunction with the client provided metrics to narrow down the culprit.
NOTE: Previously enabled by the
PERFORMANCE ONcommand. -
DATABASE
Database query execution.Rows are discarded by the database and are not sent to the client, thus, excluding network and client wire processing from the execution stack.
This mode is useful when the suspected performance bottleneck is query execution on the database.
-
-
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
-
get
Returns the globally configuredPerformanceMode. -
set
Sets the globally configuredPerformanceModefor query execution.IMPORTANT: this global configuration is NOT to be modified outside of a single threaded context e.g. the CLI runner.
-