Class CriteriaCapabilityValidatorVisitor
- java.lang.Object
-
- org.teiid.query.sql.LanguageVisitor
-
- org.teiid.query.optimizer.relational.rules.CriteriaCapabilityValidatorVisitor
-
public class CriteriaCapabilityValidatorVisitor extends LanguageVisitor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CriteriaCapabilityValidatorVisitor.ValidatorOptions
-
Constructor Summary
Constructors Constructor Description CriteriaCapabilityValidatorVisitor(Object modelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, SourceCapabilities caps)
-
Method Summary
-
Methods inherited from class org.teiid.query.sql.LanguageVisitor
setAbort, shouldAbort, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
CriteriaCapabilityValidatorVisitor
public CriteriaCapabilityValidatorVisitor(Object modelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, SourceCapabilities caps) throws QueryMetadataException, TeiidComponentException
-
-
Method Detail
-
visit
public void visit(XMLAttributes obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLNamespaces obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(TextLine obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLForest obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(JSONObject obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLElement obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLSerialize obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLParse obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLQuery obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLExists obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(XMLCast xmlCast)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(QueryString obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(Array array)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(AggregateSymbol obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(WindowFunction windowFunction)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(OrderByItem obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(OrderBy obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(CaseExpression obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(CompareCriteria obj)
- Overrides:
visit
in classLanguageVisitor
-
checkCompareCriteria
public void checkCompareCriteria(AbstractCompareCriteria obj, Expression rightExpression)
-
visit
public void visit(CompoundCriteria crit)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(IsDistinctCriteria obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(Function obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(IsNullCriteria obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(MatchCriteria obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(NotCriteria obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(SearchedCaseExpression obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(SetCriteria crit)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(ExistsCriteria crit)
- Overrides:
visit
in classLanguageVisitor
- See Also:
LanguageVisitor.visit(org.teiid.query.sql.lang.ExistsCriteria)
-
visit
public void visit(SubqueryCompareCriteria crit)
- Overrides:
visit
in classLanguageVisitor
- See Also:
LanguageVisitor.visit(org.teiid.query.sql.lang.SubqueryCompareCriteria)
-
visit
public void visit(ScalarSubquery obj)
- Overrides:
visit
in classLanguageVisitor
-
visit
public void visit(SubquerySetCriteria crit)
- Overrides:
visit
in classLanguageVisitor
-
checkAbstractSetCriteria
public void checkAbstractSetCriteria(AbstractSetCriteria crit)
-
visit
public void visit(DependentSetCriteria crit)
- Overrides:
visit
in classLanguageVisitor
-
validateSubqueryPushdown
public static Object validateSubqueryPushdown(SubqueryContainer<?> subqueryContainer, Object critNodeModelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AnalysisRecord analysisRecord) throws TeiidComponentException
Return null if the subquery cannot be pushed down, otherwise the model id of the pushdown target.- Parameters:
subqueryContainer
-critNodeModelID
-metadata
-capFinder
-- Returns:
- Throws:
TeiidComponentException
-
validateCommandPushdown
public static Object validateCommandPushdown(Object critNodeModelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AccessNode aNode, boolean considerConformed) throws TeiidComponentException
- Throws:
TeiidComponentException
-
getAccessNode
public static AccessNode getAccessNode(ProcessorPlan plan)
-
getQueryCommand
public static QueryCommand getQueryCommand(AccessNode aNode)
-
getException
public TeiidComponentException getException()
-
isValid
public boolean isValid()
-
canPushLanguageObject
public static boolean canPushLanguageObject(LanguageObject obj, Object modelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AnalysisRecord analysisRecord) throws QueryMetadataException, TeiidComponentException
-
canPushLanguageObject
public static boolean canPushLanguageObject(LanguageObject obj, Object modelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AnalysisRecord analysisRecord, CriteriaCapabilityValidatorVisitor.ValidatorOptions parameterObject) throws QueryMetadataException, TeiidComponentException
-
setCheckEvaluation
public void setCheckEvaluation(boolean b)
-
-