Search in sources :

Example 1 with DefaultOptTrace

use of org.apache.derby.impl.sql.compile.DefaultOptTrace in project derby by apache.

the class OptimizerTrace method setOptimizerTrace.

/**
 * Turn default optimizer tracing on or off.
 *
 * @param onOrOff    Whether to turn optimizer tracing on (true) or off (false).
 */
public static void setOptimizerTrace(boolean onOrOff) {
    OptTrace optimizerTracer = onOrOff ? new DefaultOptTrace() : null;
    setOptimizerTracer(optimizerTracer);
}
Also used : DefaultOptTrace(org.apache.derby.impl.sql.compile.DefaultOptTrace) DefaultOptTrace(org.apache.derby.impl.sql.compile.DefaultOptTrace) OptTrace(org.apache.derby.iapi.sql.compile.OptTrace)

Aggregations

OptTrace (org.apache.derby.iapi.sql.compile.OptTrace)1 DefaultOptTrace (org.apache.derby.impl.sql.compile.DefaultOptTrace)1