Class XPLAINFactory
java.lang.Object
org.apache.derby.impl.sql.execute.xplain.XPLAINFactory
- All Implemented Interfaces:
XPLAINFactoryIF
This is the module implementation of the XPLAINFactoryIF. It gets lazy-loaded
when needed. The factory method determines which visitor to use.
The visitor is cached in this factory for later reuse.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
the current cached schemaprivate XPLAINVisitor
the last instance of a visitor is cachedFields inherited from interface org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF
MODULE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
uncache the visitor and reset the factory statethe factory method, which gets called to determine and return an appropriate XPLAINVisitor instance
-
Field Details
-
currentVisitor
the last instance of a visitor is cached -
currentSchema
the current cached schema
-
-
Constructor Details
-
XPLAINFactory
public XPLAINFactory()
-
-
Method Details
-
getXPLAINVisitor
the factory method, which gets called to determine and return an appropriate XPLAINVisitor instance- Specified by:
getXPLAINVisitor
in interfaceXPLAINFactoryIF
- Returns:
- a XPLAINVisitor to traverse the ResultSetStatistics
- Throws:
StandardException
- See Also:
-
freeResources
public void freeResources()uncache the visitor and reset the factory state- Specified by:
freeResources
in interfaceXPLAINFactoryIF
-