public class OptimizerTrace
extends java.lang.Object
This class provides static methods for controlling the optimizer tracing in a Derby database.
| Constructor and Description |
|---|
OptimizerTrace() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getOptimizerTraceOutput()
Get the optimizer trace output for the last optimized query as a String.
|
static void |
nullifyTrace()
Null out the optimizer trace.
|
static boolean |
setOptimizerTrace(boolean onOrOff)
Control whether or not optimizer trace is on.
|
static boolean |
setOptimizerTraceHtml(boolean onOrOff)
Control whether or not optimizer trace is generated in html.
|
static boolean |
writeOptimizerTraceOutputHtml(java.lang.String fileName)
Send the optimizer trace output for the last optimized query to a file with a .html extension.
|
public static boolean setOptimizerTrace(boolean onOrOff)
onOrOff - Whether to turn optimizer trace on (true) or off (false).public static void nullifyTrace()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean setOptimizerTraceHtml(boolean onOrOff)
onOrOff - Whether or not optimizer trace will be in html (true) or not (false).public static java.lang.String getOptimizerTraceOutput()
public static boolean writeOptimizerTraceOutputHtml(java.lang.String fileName)
fileName - The name of the file to write to. (.html extension will be added.)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.