Class MongoCompareFunctionProcessor
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<Boolean,LogicalExpression,RuntimeException>
org.apache.drill.exec.store.mongo.MongoCompareFunctionProcessor
- All Implemented Interfaces:
ExprVisitor<Boolean,
LogicalExpression, RuntimeException>
public class MongoCompareFunctionProcessor
extends AbstractExprVisitor<Boolean,LogicalExpression,RuntimeException>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
getValue()
static boolean
isCompareFunction
(String functionName) boolean
process
(FunctionCall call) visitCastExpression
(CastExpression e, LogicalExpression valueArg) visitConvertExpression
(ConvertExpression e, LogicalExpression valueArg) visitSchemaPath
(SchemaPath path, LogicalExpression valueArg) visitUnknown
(LogicalExpression e, LogicalExpression valueArg) Handles implementation-specific expressions not known to the visitor structure.Methods inherited from class org.apache.drill.common.expression.visitors.AbstractExprVisitor
visitAnyValueExpression, visitBooleanConstant, visitBooleanOperator, visitDateConstant, visitDecimal18Constant, visitDecimal28Constant, visitDecimal38Constant, visitDecimal9Constant, visitDoubleConstant, visitFloatConstant, visitFunctionCall, visitFunctionHolderExpression, visitIfExpression, visitIntConstant, visitIntervalDayConstant, visitIntervalYearConstant, visitLongConstant, visitNullConstant, visitNullExpression, visitParameter, visitQuotedStringConstant, visitTimeConstant, visitTimeStampConstant, visitTypedFieldExpr, visitVarDecimalConstant
-
Constructor Details
-
MongoCompareFunctionProcessor
-
-
Method Details
-
isCompareFunction
-
process
-
getValue
-
isSuccess
public boolean isSuccess() -
getPath
-
getFunctionName
-
visitCastExpression
public Boolean visitCastExpression(CastExpression e, LogicalExpression valueArg) throws RuntimeException - Specified by:
visitCastExpression
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitCastExpression
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression valueArg) throws RuntimeException - Specified by:
visitConvertExpression
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitConvertExpression
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitUnknown
public Boolean visitUnknown(LogicalExpression e, LogicalExpression valueArg) throws RuntimeException Description copied from class:AbstractExprVisitor
Handles implementation-specific expressions not known to the visitor structure. Since there are no "visitFoo" methods for these "unknown" expressions, subclassses should use the functionally-equivalentinstanceof
approach to parse out these "unknown" expressions.- Specified by:
visitUnknown
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitUnknown
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitSchemaPath
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-