Class ExpressionUtils

Object
io.delta.kernel.internal.util.ExpressionUtils

public class ExpressionUtils extends Object
  • Constructor Details

    • ExpressionUtils

      public ExpressionUtils()
  • Method Details

    • asPredicate

      public static Predicate asPredicate(Expression expression)
      Return an expression cast as a predicate, throw an error if it is not a predicate
    • getLeft

      public static Expression getLeft(Expression expression)
      Utility method to return the left child of the binary input expression
    • getRight

      public static Expression getRight(Expression expression)
      Utility method to return the right child of the binary input expression
    • getUnaryChild

      public static Expression getUnaryChild(Expression expression)
      Utility method to return the single child of the unary input expression
    • createPredicate

      public static Predicate createPredicate(String name, List<Expression> children, Optional<CollationIdentifier> collationIdentifier)
      Utility method to create a predicate with an optional collation identifier
    • createPredicate

      public static Predicate createPredicate(String name, Expression left, Expression right, Optional<CollationIdentifier> collationIdentifier)
      Utility method to create a binary predicate with an optional collation identifier