Class: Gandiva::ExpressionBuilder::BinaryOperation
- Inherits:
-
Value
- Object
- Value
- Gandiva::ExpressionBuilder::BinaryOperation
show all
- Defined in:
- lib/gandiva/expression-builder/binary-operation.rb
Instance Method Summary
collapse
Methods inherited from Value
#*, #+, #-, #/, #<, #==, #>
Constructor Details
#initialize(operator, left, right) ⇒ BinaryOperation
23
24
25
26
27
|
# File 'lib/gandiva/expression-builder/binary-operation.rb', line 23
def initialize(operator, left, right)
@operator = operator
@left = left
@right = right
end
|
Instance Method Details
#build ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/gandiva/expression-builder/binary-operation.rb', line 29
def build
left_node = @left.build
right_node = @right.build
FunctionNode.new(@operator,
[left_node, right_node],
return_type(left_node, right_node))
end
|