Package org.apache.calcite.util.trace
Class CalciteTrace
java.lang.Object
org.apache.calcite.util.trace.CalciteTrace
Contains all of the 
tracers used within
 org.apache.calcite class libraries.
 Note to developers
Please ensure that every tracer used in org.apache.calcite is added to
 this class as a public static final member called 
 componentTracer. For example, getPlannerTracer() is the
 tracer used by all classes which take part in the query planning process.
 
The javadoc in this file is the primary source of information on what tracers are available, so the javadoc against each tracer member must be an up-to-date description of what that tracer does.
In the class where the tracer is used, create a private (or
 perhaps protected) static final member called 
 tracer.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerThe "org.apache.calcite.sql.parser" tracer reports parser events inSqlParserand other classes at DEBUG.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ThreadLocal<@Nullable Function2<Void,File, String>> Thread-local handler that is called with dynamically generated Java code.static org.slf4j.LoggerThe "org.apache.calcite.sql.parser" tracer reports parse events.static org.slf4j.LoggerReports volcano planner optimization task events.static org.slf4j.LoggerThe "org.apache.calcite.plan.RelOptPlanner" tracer prints the query optimization process.static org.slf4j.LoggerThe "org.apache.calcite.rel.RelImplementorImpl" tracer reports when expressions are bound to variables (DEBUG, formerly FINE)static org.slf4j.Loggerstatic org.slf4j.LoggerThe tracer "org.apache.calcite.sql.timing" traces timing for various stages of query processing.static org.slf4j.LoggerThe "org.apache.calcite.sql2rel" tracer reports parse events.static org.slf4j.LoggerThe "org.apache.calcite.prepare.Prepare" tracer prints the generated program at DEBUG (formerly, FINE) or higher.static org.slf4j.LoggergetTestTracer(Class<?> testClass) The tracers report important/useful information related with the execution of unit tests.
- 
Field Details- 
PARSER_LOGGERpublic static final org.slf4j.Logger PARSER_LOGGERThe "org.apache.calcite.sql.parser" tracer reports parser events inSqlParserand other classes at DEBUG.
 
- 
- 
Constructor Details- 
CalciteTracepublic CalciteTrace()
 
- 
- 
Method Details- 
getPlannerTracerpublic static org.slf4j.Logger getPlannerTracer()The "org.apache.calcite.plan.RelOptPlanner" tracer prints the query optimization process.Levels: - Logger.debug(String)(formerly FINE) prints rules as they fire;
- Logger.trace(String)(formerly FINER) prints and validates the whole expression pool and rule queue as each rule fires;
- Logger.trace(String)(formerly FINEST) also prints finer details like rule importances.
 
- 
getPlannerTaskTracerpublic static org.slf4j.Logger getPlannerTaskTracer()Reports volcano planner optimization task events.
- 
getStatementTracerpublic static org.slf4j.Logger getStatementTracer()The "org.apache.calcite.prepare.Prepare" tracer prints the generated program at DEBUG (formerly, FINE) or higher.
- 
getRelImplementorTracerpublic static org.slf4j.Logger getRelImplementorTracer()The "org.apache.calcite.rel.RelImplementorImpl" tracer reports when expressions are bound to variables (DEBUG, formerly FINE)
- 
getSqlTimingTracerpublic static org.slf4j.Logger getSqlTimingTracer()The tracer "org.apache.calcite.sql.timing" traces timing for various stages of query processing.- See Also:
 
- 
getParserTracerpublic static org.slf4j.Logger getParserTracer()The "org.apache.calcite.sql.parser" tracer reports parse events.
- 
getSqlToRelTracerpublic static org.slf4j.Logger getSqlToRelTracer()The "org.apache.calcite.sql2rel" tracer reports parse events.
- 
getRuleAttemptsTracerpublic static org.slf4j.Logger getRuleAttemptsTracer()
- 
getTestTracerThe tracers report important/useful information related with the execution of unit tests.
- 
getDynamicHandlerThread-local handler that is called with dynamically generated Java code. It exists for unit-testing. The handler is never null; the default handler does nothing.
 
-