Class RulePlaceAccess
- java.lang.Object
-
- org.teiid.query.optimizer.relational.rules.RulePlaceAccess
-
- All Implemented Interfaces:
OptimizerRule
public final class RulePlaceAccess extends Object implements OptimizerRule
This rule finds all SOURCE nodes and associates ACCESS patterns, ACCESS nodes, and aliases.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFORMED_SOURCES
static String
RECONTEXT_STRING
-
Constructor Summary
Constructors Constructor Description RulePlaceAccess()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanNode
execute(PlanNode plan, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, RuleStack rules, AnalysisRecord analysisRecord, CommandContext context)
static GroupSymbol
recontextSymbol(GroupSymbol oldSymbol, Set<String> names)
Creates a uniquely named group symbol given the old symbolString
toString()
Return rule name
-
-
-
Field Detail
-
CONFORMED_SOURCES
public static final String CONFORMED_SOURCES
- See Also:
- Constant Field Values
-
RECONTEXT_STRING
public static final String RECONTEXT_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public PlanNode execute(PlanNode plan, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, RuleStack rules, AnalysisRecord analysisRecord, CommandContext context) throws QueryMetadataException, TeiidComponentException, QueryPlannerException
- Specified by:
execute
in interfaceOptimizerRule
- Throws:
QueryMetadataException
TeiidComponentException
QueryPlannerException
-
recontextSymbol
public static GroupSymbol recontextSymbol(GroupSymbol oldSymbol, Set<String> names)
Creates a uniquely named group symbol given the old symbol- Parameters:
oldSymbol
-names
- a case insensitive set of all known groups- Returns:
-
-