Class AggregateChecker
java.lang.Object
org.apache.drill.common.expression.visitors.AggregateChecker
- All Implemented Interfaces:
ExprVisitor<Boolean,
ErrorCollector, RuntimeException>
public final class AggregateChecker
extends Object
implements ExprVisitor<Boolean,ErrorCollector,RuntimeException>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAggregating
(LogicalExpression e, ErrorCollector errors) visitBooleanOperator
(BooleanOperator op, ErrorCollector errors) visitCastExpression
(CastExpression e, ErrorCollector errors) visitDateConstant
(ValueExpressions.DateExpression intExpr, ErrorCollector errors) visitDecimal18Constant
(ValueExpressions.Decimal18Expression decExpr, ErrorCollector errors) visitDecimal28Constant
(ValueExpressions.Decimal28Expression decExpr, ErrorCollector errors) visitDecimal38Constant
(ValueExpressions.Decimal38Expression decExpr, ErrorCollector errors) visitDecimal9Constant
(ValueExpressions.Decimal9Expression decExpr, ErrorCollector errors) visitDoubleConstant
(ValueExpressions.DoubleExpression dExpr, ErrorCollector errors) visitFloatConstant
(ValueExpressions.FloatExpression fExpr, ErrorCollector errors) visitFunctionCall
(FunctionCall call, ErrorCollector errors) visitFunctionHolderExpression
(FunctionHolderExpression holder, ErrorCollector errors) visitIfExpression
(IfExpression ifExpr, ErrorCollector errors) visitIntConstant
(ValueExpressions.IntExpression intExpr, ErrorCollector errors) visitIntervalDayConstant
(ValueExpressions.IntervalDayExpression intExpr, ErrorCollector errors) visitLongConstant
(ValueExpressions.LongExpression intExpr, ErrorCollector errors) visitNullConstant
(TypedNullConstant e, ErrorCollector value) visitNullExpression
(NullExpression e, ErrorCollector value) visitSchemaPath
(SchemaPath path, ErrorCollector errors) visitTimeConstant
(ValueExpressions.TimeExpression intExpr, ErrorCollector errors) visitTimeStampConstant
(ValueExpressions.TimeStampExpression intExpr, ErrorCollector errors) visitTypedFieldExpr
(TypedFieldExpr e, ErrorCollector value) visitUnknown
(LogicalExpression e, ErrorCollector errors) visitVarDecimalConstant
(ValueExpressions.VarDecimalExpression decExpr, ErrorCollector errors)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AggregateChecker
public AggregateChecker()
-
-
Method Details
-
isAggregating
-
visitFunctionCall
- Specified by:
visitFunctionCall
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitFunctionHolderExpression
public Boolean visitFunctionHolderExpression(FunctionHolderExpression holder, ErrorCollector errors) - Specified by:
visitFunctionHolderExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitBooleanOperator
- Specified by:
visitBooleanOperator
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitIfExpression
- Specified by:
visitIfExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitIntConstant
- Specified by:
visitIntConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitFloatConstant
- Specified by:
visitFloatConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitLongConstant
- Specified by:
visitLongConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitDoubleConstant
- Specified by:
visitDoubleConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitBooleanConstant
- Specified by:
visitBooleanConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitDecimal9Constant
public Boolean visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, ErrorCollector errors) - Specified by:
visitDecimal9Constant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitDecimal18Constant
public Boolean visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, ErrorCollector errors) - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitDecimal28Constant
public Boolean visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, ErrorCollector errors) - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitDecimal38Constant
public Boolean visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, ErrorCollector errors) - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitVarDecimalConstant
public Boolean visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, ErrorCollector errors) - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitQuotedStringConstant
- Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitUnknown
- Specified by:
visitUnknown
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitCastExpression
- Specified by:
visitCastExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitConvertExpression
public Boolean visitConvertExpression(ConvertExpression e, ErrorCollector errors) throws RuntimeException - Specified by:
visitConvertExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitAnyValueExpression
public Boolean visitAnyValueExpression(AnyValueExpression e, ErrorCollector errors) throws RuntimeException - Specified by:
visitAnyValueExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDateConstant
- Specified by:
visitDateConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitTimeConstant
- Specified by:
visitTimeConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitTimeStampConstant
public Boolean visitTimeStampConstant(ValueExpressions.TimeStampExpression intExpr, ErrorCollector errors) - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitIntervalYearConstant
public Boolean visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, ErrorCollector errors) - Specified by:
visitIntervalYearConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitIntervalDayConstant
public Boolean visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, ErrorCollector errors) - Specified by:
visitIntervalDayConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException>
-
visitNullConstant
- Specified by:
visitNullConstant
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitNullExpression
- Specified by:
visitNullExpression
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitParameter
public Boolean visitParameter(ValueExpressions.ParameterExpression e, ErrorCollector value) throws RuntimeException - Specified by:
visitParameter
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitTypedFieldExpr
- Specified by:
visitTypedFieldExpr
in interfaceExprVisitor<Boolean,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-