java.lang.Object
org.apache.arrow.gandiva.expression.InNode
All Implemented Interfaces:
TreeNode

public class InNode extends Object implements TreeNode
In Node representation in java.
  • Method Details

    • makeIntInExpr

      public static InNode makeIntInExpr(TreeNode node, Set<Integer> intValues)
      Makes an IN node for int values.
      Parameters:
      node - Node with the 'IN' clause.
      intValues - Int values to build the IN node.
      Returns:
      InNode referring to tree node.
    • makeLongInExpr

      public static InNode makeLongInExpr(TreeNode node, Set<Long> longValues)
      Makes an IN node for long values.
      Parameters:
      node - Node with the 'IN' clause.
      longValues - Long values to build the IN node.
      Returns:
      InNode referring to tree node.
    • makeFloatInExpr

      public static InNode makeFloatInExpr(TreeNode node, Set<Float> floatValues)
      Makes an IN node for float values.
      Parameters:
      node - Node with the 'IN' clause.
      floatValues - Float values to build the IN node.
      Returns:
      InNode referring to tree node.
    • makeDoubleInExpr

      public static InNode makeDoubleInExpr(TreeNode node, Set<Double> doubleValues)
      Makes an IN node for double values.
      Parameters:
      node - Node with the 'IN' clause.
      doubleValues - Double values to build the IN node.
      Returns:
      InNode referring to tree node.
    • makeDecimalInExpr

      public static InNode makeDecimalInExpr(TreeNode node, Set<BigDecimal> decimalValues, Integer precision, Integer scale)
    • makeStringInExpr

      public static InNode makeStringInExpr(TreeNode node, Set<String> stringValues)
    • makeBinaryInExpr

      public static InNode makeBinaryInExpr(TreeNode node, Set<byte[]> binaryValues)
    • toProtobuf

      public GandivaTypes.TreeNode toProtobuf() throws GandivaException
      Description copied from interface: TreeNode
      Converts a TreeNode into a protobuf.
      Specified by:
      toProtobuf in interface TreeNode
      Returns:
      A treenode protobuf
      Throws:
      GandivaException - in case the TreeNode cannot be processed