[Groonga-commit] groonga/groonga at 4c512e3 [master] mrb: implement estimate_size for variable node

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 7 18:14:53 JST 2016


Kouhei Sutou	2016-04-07 18:14:53 +0900 (Thu, 07 Apr 2016)

  New Revision: 4c512e357d86c43bfe1456307b0543b5e9fa5ad0
  https://github.com/groonga/groonga/commit/4c512e357d86c43bfe1456307b0543b5e9fa5ad0

  Message:
    mrb: implement estimate_size for variable node

  Modified files:
    lib/mrb/scripts/expression_tree/variable.rb

  Modified: lib/mrb/scripts/expression_tree/variable.rb (+4 -0)
===================================================================
--- lib/mrb/scripts/expression_tree/variable.rb    2016-04-07 17:28:40 +0900 (bc5e523)
+++ lib/mrb/scripts/expression_tree/variable.rb    2016-04-07 18:14:53 +0900 (e99ad9a)
@@ -9,6 +9,10 @@ module Groonga
       def build(expression)
         expression.append_object(@column, Operator::GET_VALUE, 1)
       end
+
+      def estimate_size(table)
+        table.size
+      end
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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