org.apache.derby.impl.sql.compile
Class OptimizerTracer
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.OptimizerTracer
-
- All Implemented Interfaces:
- OptionalTool
public class OptimizerTracer extends java.lang.Object implements OptionalTool
OptionalTool for tracing the Optimizer.
-
-
Constructor Summary
Constructors Constructor and Description OptimizerTracer()0-arg constructor required by the OptionalTool contract
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidloadTool(java.lang.String... configurationParameters)Turns on optimizer tracing.voidunloadTool(java.lang.String... configurationParameters)Print the optimizer trace and turn off tracing.
-
-
-
Constructor Detail
-
OptimizerTracer
public OptimizerTracer()
0-arg constructor required by the OptionalTool contract
-
-
Method Detail
-
loadTool
public void loadTool(java.lang.String... configurationParameters) throws java.sql.SQLExceptionTurns on optimizer tracing. May take optional parameters:
- xml - If the first arg is the "xml" literal, then trace output will be formatted as xml.
- custom, $class - If the first arg is the "custom" literal, then the next arg must be the name of a class which implements org.apache.derby.iapi.sql.compile.OptTrace and which has a 0-arg constructor. The 0-arg constructor is called and the resulting OptTrace object is plugged in to trace the optimizer.
- Specified by:
loadToolin interfaceOptionalTool- Throws:
java.sql.SQLException
-
unloadTool
public void unloadTool(java.lang.String... configurationParameters) throws java.sql.SQLExceptionPrint the optimizer trace and turn off tracing. Takes optional parameters:
- fileName - Where to write the optimizer trace. If omitted, the trace is written to System.out.
- Specified by:
unloadToolin interfaceOptionalTool- Throws:
java.sql.SQLException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG