java.lang.Object
org.apache.arrow.gandiva.expression.InNode
- All Implemented Interfaces:
TreeNode
In Node representation in java.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InNode
makeBinaryInExpr
(TreeNode node, Set<byte[]> binaryValues) static InNode
makeDecimalInExpr
(TreeNode node, Set<BigDecimal> decimalValues, Integer precision, Integer scale) static InNode
makeDoubleInExpr
(TreeNode node, Set<Double> doubleValues) Makes an IN node for double values.static InNode
makeFloatInExpr
(TreeNode node, Set<Float> floatValues) Makes an IN node for float values.static InNode
makeIntInExpr
(TreeNode node, Set<Integer> intValues) Makes an IN node for int values.static InNode
makeLongInExpr
(TreeNode node, Set<Long> longValues) Makes an IN node for long values.static InNode
makeStringInExpr
(TreeNode node, Set<String> stringValues) Converts a TreeNode into a protobuf.
-
Method Details
-
makeIntInExpr
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
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
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
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
-
makeStringInExpr
-
makeBinaryInExpr
-
toProtobuf
Description copied from interface:TreeNode
Converts a TreeNode into a protobuf.- Specified by:
toProtobuf
in interfaceTreeNode
- Returns:
- A treenode protobuf
- Throws:
GandivaException
- in case the TreeNode cannot be processed
-