Class DrillExprToIcebergTranslator
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<org.apache.iceberg.expressions.Expression,Void,RuntimeException>
org.apache.drill.exec.store.iceberg.plan.DrillExprToIcebergTranslator
- All Implemented Interfaces:
ExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException>
public class DrillExprToIcebergTranslator
extends AbstractExprVisitor<org.apache.iceberg.expressions.Expression,Void,RuntimeException>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.iceberg.expressions.Expression
org.apache.iceberg.expressions.Expression
visitDateConstant
(ValueExpressions.DateExpression dateExpr, Void value) org.apache.iceberg.expressions.Expression
visitDecimal18Constant
(ValueExpressions.Decimal18Expression decExpr, Void value) org.apache.iceberg.expressions.Expression
visitDecimal28Constant
(ValueExpressions.Decimal28Expression decExpr, Void value) org.apache.iceberg.expressions.Expression
visitDecimal38Constant
(ValueExpressions.Decimal38Expression decExpr, Void value) org.apache.iceberg.expressions.Expression
visitDecimal9Constant
(ValueExpressions.Decimal9Expression decExpr, Void value) org.apache.iceberg.expressions.Expression
visitDoubleConstant
(ValueExpressions.DoubleExpression dExpr, Void value) org.apache.iceberg.expressions.Expression
visitFloatConstant
(ValueExpressions.FloatExpression fExpr, Void value) org.apache.iceberg.expressions.Expression
visitFunctionCall
(FunctionCall call, Void value) org.apache.iceberg.expressions.Expression
visitIntConstant
(ValueExpressions.IntExpression intExpr, Void value) org.apache.iceberg.expressions.Expression
visitLongConstant
(ValueExpressions.LongExpression longExpr, Void value) org.apache.iceberg.expressions.Expression
org.apache.iceberg.expressions.Expression
visitTimeConstant
(ValueExpressions.TimeExpression timeExpr, Void value) org.apache.iceberg.expressions.Expression
visitTimeStampConstant
(ValueExpressions.TimeStampExpression timestampExpr, Void value) org.apache.iceberg.expressions.Expression
visitUnknown
(LogicalExpression e, Void value) Handles implementation-specific expressions not known to the visitor structure.org.apache.iceberg.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
-
Field Details
-
INSTANCE
public static final ExprVisitor<org.apache.iceberg.expressions.Expression,Void, INSTANCERuntimeException>
-
-
Constructor Details
-
DrillExprToIcebergTranslator
public DrillExprToIcebergTranslator()
-
-
Method Details
-
visitFunctionCall
public org.apache.iceberg.expressions.Expression visitFunctionCall(FunctionCall call, Void value) throws RuntimeException - Specified by:
visitFunctionCall
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitFunctionCall
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitFloatConstant
public org.apache.iceberg.expressions.Expression visitFloatConstant(ValueExpressions.FloatExpression fExpr, Void value) throws RuntimeException - Specified by:
visitFloatConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitFloatConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitIntConstant
public org.apache.iceberg.expressions.Expression visitIntConstant(ValueExpressions.IntExpression intExpr, Void value) throws RuntimeException - Specified by:
visitIntConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitIntConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitLongConstant
public org.apache.iceberg.expressions.Expression visitLongConstant(ValueExpressions.LongExpression longExpr, Void value) throws RuntimeException - Specified by:
visitLongConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitLongConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDecimal9Constant
public org.apache.iceberg.expressions.Expression visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, Void value) throws RuntimeException - Specified by:
visitDecimal9Constant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal9Constant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDecimal18Constant
public org.apache.iceberg.expressions.Expression visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, Void value) throws RuntimeException - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal18Constant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDecimal28Constant
public org.apache.iceberg.expressions.Expression visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, Void value) throws RuntimeException - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal28Constant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDecimal38Constant
public org.apache.iceberg.expressions.Expression visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, Void value) throws RuntimeException - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDecimal38Constant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitVarDecimalConstant
public org.apache.iceberg.expressions.Expression visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, Void value) throws RuntimeException - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitVarDecimalConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDateConstant
public org.apache.iceberg.expressions.Expression visitDateConstant(ValueExpressions.DateExpression dateExpr, Void value) throws RuntimeException - Specified by:
visitDateConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDateConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitTimeConstant
public org.apache.iceberg.expressions.Expression visitTimeConstant(ValueExpressions.TimeExpression timeExpr, Void value) throws RuntimeException - Specified by:
visitTimeConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitTimeConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitTimeStampConstant
public org.apache.iceberg.expressions.Expression visitTimeStampConstant(ValueExpressions.TimeStampExpression timestampExpr, Void value) throws RuntimeException - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitTimeStampConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitDoubleConstant
public org.apache.iceberg.expressions.Expression visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, Void value) throws RuntimeException - Specified by:
visitDoubleConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitDoubleConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitBooleanConstant
public org.apache.iceberg.expressions.Expression visitBooleanConstant(ValueExpressions.BooleanExpression e, Void value) throws RuntimeException - Specified by:
visitBooleanConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitBooleanConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitQuotedStringConstant
public org.apache.iceberg.expressions.Expression visitQuotedStringConstant(ValueExpressions.QuotedString e, Void value) throws RuntimeException - Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitQuotedStringConstant
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-
visitUnknown
public org.apache.iceberg.expressions.Expression visitUnknown(LogicalExpression e, Void value) 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<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Overrides:
visitUnknown
in classAbstractExprVisitor<org.apache.iceberg.expressions.Expression,
Void, RuntimeException> - Throws:
RuntimeException
-