Class LogicalExpression
- java.lang.Object
-
- com.amazonaws.athena.connector.substrait.model.LogicalExpression
-
public class LogicalExpression extends Object
Represents a logical expression tree that preserves AND/OR hierarchy from Substrait expressions. This allows proper conversion to MongoDB queries while maintaining the original logical structure.
-
-
Constructor Summary
Constructors Constructor Description LogicalExpression(ColumnPredicate leafPredicate)LogicalExpression(SubstraitOperator operator, List<LogicalExpression> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LogicalExpression>getChildren()ColumnPredicategetLeafPredicate()SubstraitOperatorgetOperator()booleanhasComplexLogic()booleanisLeaf()
-
-
-
Constructor Detail
-
LogicalExpression
public LogicalExpression(SubstraitOperator operator, List<LogicalExpression> children)
-
LogicalExpression
public LogicalExpression(ColumnPredicate leafPredicate)
-
-
Method Detail
-
getOperator
public SubstraitOperator getOperator()
-
getChildren
public List<LogicalExpression> getChildren()
-
getLeafPredicate
public ColumnPredicate getLeafPredicate()
-
isLeaf
public boolean isLeaf()
-
hasComplexLogic
public boolean hasComplexLogic()
-
-