Package org.teiid.translator.odata4
Class ODataFilterVisitor
- java.lang.Object
-
- org.teiid.language.visitor.AbstractLanguageVisitor
-
- org.teiid.language.visitor.HierarchyVisitor
-
- org.teiid.translator.odata4.ODataFilterVisitor
-
- All Implemented Interfaces:
LanguageObjectVisitor
public class ODataFilterVisitor extends HierarchyVisitor
Only walks the filter version of the query
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayList<TranslatorException>
exceptions
protected StringBuilder
filter
-
Constructor Summary
Constructors Constructor Description ODataFilterVisitor(ODataExecutionFactory ef, RuntimeMetadata metadata, ODataQuery query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(List<? extends LanguageObject> items)
void
append(LanguageObject obj)
protected void
append(LanguageObject[] items)
void
appendFilter(Condition condition)
protected void
appendNestedCondition(AndOr parent, Condition condition)
protected void
appendRightComparison(Comparison obj)
protected boolean
isInfixFunction(String function)
void
visit(AndOr obj)
void
visit(ColumnReference obj)
void
visit(Comparison obj)
void
visit(Function obj)
void
visit(IsNull obj)
void
visit(Literal obj)
void
visit(Not obj)
-
Methods inherited from class org.teiid.language.visitor.HierarchyVisitor
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
-
Methods inherited from class org.teiid.language.visitor.AbstractLanguageVisitor
visit, visit, visit, visit, visit, visitNode, visitNodes, visitNodes
-
-
-
-
Field Detail
-
filter
protected StringBuilder filter
-
exceptions
protected ArrayList<TranslatorException> exceptions
-
-
Constructor Detail
-
ODataFilterVisitor
public ODataFilterVisitor(ODataExecutionFactory ef, RuntimeMetadata metadata, ODataQuery query)
-
-
Method Detail
-
appendFilter
public void appendFilter(Condition condition) throws TranslatorException
- Throws:
TranslatorException
-
visit
public void visit(Comparison obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
appendRightComparison
protected void appendRightComparison(Comparison obj)
-
visit
public void visit(IsNull obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(AndOr obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(ColumnReference obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
isInfixFunction
protected boolean isInfixFunction(String function)
-
visit
public void visit(Function obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(Literal obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
visit
public void visit(Not obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
append
public void append(LanguageObject obj)
-
append
protected void append(List<? extends LanguageObject> items)
-
append
protected void append(LanguageObject[] items)
-
-