[Groonga-commit] droonga/fluent-plugin-droonga at 411b736 [master] Add "or" reducer

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 29 17:52:47 JST 2014


YUKI Hiroshi	2014-01-29 17:52:47 +0900 (Wed, 29 Jan 2014)

  New Revision: 411b736b0b1716796cd76acb8a36b520f1a63929
  https://github.com/droonga/fluent-plugin-droonga/commit/411b736b0b1716796cd76acb8a36b520f1a63929

  Message:
    Add "or" reducer

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+2 -0)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2014-01-29 17:49:15 +0900 (8758f04)
+++ lib/droonga/plugin/collector/basic.rb    2014-01-29 17:52:47 +0900 (afa0916)
@@ -52,6 +52,8 @@ module Droonga
       case deal["type"]
       when "and"
         reduced_value = left_value && right_value
+      when "or"
+        reduced_value = left_value || right_value
       when "sum"
         reduced_value = sum(left_value, right_value)
         reduced_value = apply_output_range(reduced_value,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index