Class: Fluent::FilterWhere::Parser::NumberOpExp
- Inherits:
-
BinaryOpExp
- Object
- Exp
- BinaryOpExp
- Fluent::FilterWhere::Parser::NumberOpExp
- Defined in:
- lib/fluent/plugin/filter_where/parser/exp.rb
Instance Attribute Summary
Attributes inherited from BinaryOpExp
Instance Method Summary collapse
Methods inherited from BinaryOpExp
Constructor Details
This class inherits a constructor from Fluent::FilterWhere::Parser::BinaryOpExp
Instance Method Details
#eval(record) ⇒ Boolean
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 45 def eval(record) l = left.get(record) r = right.get(record) case operator when :EQ l == r when :NEQ l != r when :GT l > r when :GE l >= r when :LT l < r when :LE l <= r else assert(false) false end end |