Class DrillExprToDeltaTranslator
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<io.delta.standalone.expressions.Expression,Void,RuntimeException>
org.apache.drill.exec.store.delta.plan.DrillExprToDeltaTranslator
- All Implemented Interfaces:
ExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
public class DrillExprToDeltaTranslator
extends AbstractExprVisitor<io.delta.standalone.expressions.Expression,Void,RuntimeException>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.delta.standalone.expressions.Expression
io.delta.standalone.expressions.Expression
visitDateConstant
(ValueExpressions.DateExpression dateExpr, Void value) io.delta.standalone.expressions.Expression
visitDecimal18Constant
(ValueExpressions.Decimal18Expression decExpr, Void value) io.delta.standalone.expressions.Expression
visitDecimal28Constant
(ValueExpressions.Decimal28Expression decExpr, Void value) io.delta.standalone.expressions.Expression
visitDecimal38Constant
(ValueExpressions.Decimal38Expression decExpr, Void value) io.delta.standalone.expressions.Expression
visitDecimal9Constant
(ValueExpressions.Decimal9Expression decExpr, Void value) io.delta.standalone.expressions.Expression
visitDoubleConstant
(ValueExpressions.DoubleExpression dExpr, Void value) io.delta.standalone.expressions.Expression
visitFloatConstant
(ValueExpressions.FloatExpression fExpr, Void value) io.delta.standalone.expressions.Expression
visitFunctionCall
(FunctionCall call, Void value) io.delta.standalone.expressions.Expression
visitIntConstant
(ValueExpressions.IntExpression intExpr, Void value) io.delta.standalone.expressions.Expression
visitLongConstant
(ValueExpressions.LongExpression longExpr, Void value) io.delta.standalone.expressions.Expression
io.delta.standalone.expressions.Expression
visitTimeConstant
(ValueExpressions.TimeExpression timeExpr, Void value) io.delta.standalone.expressions.Expression
visitTimeStampConstant
(ValueExpressions.TimeStampExpression timestampExpr, Void value) io.delta.standalone.expressions.Expression
visitUnknown
(LogicalExpression e, Void value) Handles implementation-specific expressions not known to the visitor structure.io.delta.standalone.expressions.Expression
visitVarDecimalConstant
(ValueExpressions.VarDecimalExpression decExpr, Void value) Methods inherited from class org.apache.drill.common.expression.visitors.AbstractExprVisitor
visitAnyValueExpression, visitBooleanOperator, visitCastExpression, visitConvertExpression, visitFunctionHolderExpression, visitIfExpression, visitIntervalDayConstant, visitIntervalYearConstant, visitNullConstant, visitNullExpression, visitParameter, visitSchemaPath, visitTypedFieldExpr
-
Constructor Details
-
DrillExprToDeltaTranslator
public DrillExprToDeltaTranslator(io.delta.standalone.types.StructType structType)
-
-
Method Details
-
visitFunctionCall
- Specified by:
visitFunctionCall
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitFunctionCall
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitFloatConstant
public io.delta.standalone.expressions.Expression visitFloatConstant(ValueExpressions.FloatExpression fExpr, Void value) - Specified by:
visitFloatConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitFloatConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitIntConstant
public io.delta.standalone.expressions.Expression visitIntConstant(ValueExpressions.IntExpression intExpr, Void value) - Specified by:
visitIntConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitIntConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitLongConstant
public io.delta.standalone.expressions.Expression visitLongConstant(ValueExpressions.LongExpression longExpr, Void value) - Specified by:
visitLongConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitLongConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDecimal9Constant
public io.delta.standalone.expressions.Expression visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, Void value) - Specified by:
visitDecimal9Constant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal9Constant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDecimal18Constant
public io.delta.standalone.expressions.Expression visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, Void value) - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal18Constant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDecimal28Constant
public io.delta.standalone.expressions.Expression visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, Void value) - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal28Constant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDecimal38Constant
public io.delta.standalone.expressions.Expression visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, Void value) - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal38Constant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitVarDecimalConstant
public io.delta.standalone.expressions.Expression visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, Void value) - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitVarDecimalConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDateConstant
public io.delta.standalone.expressions.Expression visitDateConstant(ValueExpressions.DateExpression dateExpr, Void value) - Specified by:
visitDateConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDateConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitTimeConstant
public io.delta.standalone.expressions.Expression visitTimeConstant(ValueExpressions.TimeExpression timeExpr, Void value) - Specified by:
visitTimeConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitTimeConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitTimeStampConstant
public io.delta.standalone.expressions.Expression visitTimeStampConstant(ValueExpressions.TimeStampExpression timestampExpr, Void value) - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitTimeStampConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitDoubleConstant
public io.delta.standalone.expressions.Expression visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, Void value) - Specified by:
visitDoubleConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDoubleConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitBooleanConstant
public io.delta.standalone.expressions.Expression visitBooleanConstant(ValueExpressions.BooleanExpression e, Void value) - Specified by:
visitBooleanConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitBooleanConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitQuotedStringConstant
public io.delta.standalone.expressions.Expression visitQuotedStringConstant(ValueExpressions.QuotedString e, Void value) - Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitQuotedStringConstant
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-
visitUnknown
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<io.delta.standalone.expressions.Expression,
Void, RuntimeException> - Overrides:
visitUnknown
in classAbstractExprVisitor<io.delta.standalone.expressions.Expression,
Void, RuntimeException>
-