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