[Groonga-commit] droonga/fluent-plugin-droonga at afa1f03 [master] Implement "and" boolean reducer

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jan 24 17:16:30 JST 2014


YUKI Hiroshi	2014-01-24 17:16:30 +0900 (Fri, 24 Jan 2014)

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

  Message:
    Implement "and" boolean 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-24 17:16:13 +0900 (c9e1b4e)
+++ lib/droonga/plugin/collector/basic.rb    2014-01-24 17:16:30 +0900 (ebc123f)
@@ -47,6 +47,8 @@ module Droonga
         reduced_value = nil
 
         case deal["type"]
+        when "and"
+          reduced_value = left_value && right_value
         when "sum"
           reduced_value = left_value + right_value
         when "sort"
-------------- next part --------------
HTML����������������������������...
Download 



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