Class: Fluent::FilterWhere::Parser::BooleanOpExp

Inherits:
BinaryOpExp show all
Defined in:
lib/fluent/plugin/filter_where/parser/exp.rb

Instance Attribute Summary

Attributes inherited from BinaryOpExp

#left, #operator, #right

Instance Method Summary collapse

Methods inherited from BinaryOpExp

#initialize

Constructor Details

This class inherits a constructor from Fluent::FilterWhere::Parser::BinaryOpExp

Instance Method Details

#eval(record) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 28

def eval(record)
  l = left.get(record)
  r = right.get(record)
  case operator
  when :EQ
    l == r
  when :NEQ
    l != r
  else
    assert(false)
    false
  end
end