[Groonga-commit] droonga/droonga-engine at f3d0e6d [master] Split method to generate slice instances

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Dec 5 12:17:00 JST 2014


YUKI Hiroshi	2014-12-05 12:17:00 +0900 (Fri, 05 Dec 2014)

  New Revision: f3d0e6d01d67f22d30632948007f29e17ea2474a
  https://github.com/droonga/droonga-engine/commit/f3d0e6d01d67f22d30632948007f29e17ea2474a

  Merged e0f9f34: Merge pull request #30 from piroor/replicas-in-a-branch

  Message:
    Split method to generate slice instances

  Modified files:
    lib/droonga/catalog/slices.rb

  Modified: lib/droonga/catalog/slices.rb (+7 -3)
===================================================================
--- lib/droonga/catalog/slices.rb    2014-12-05 12:16:52 +0900 (93ae39a)
+++ lib/droonga/catalog/slices.rb    2014-12-05 12:17:00 +0900 (8a7dbac)
@@ -39,9 +39,7 @@ module Droonga
 
       def slices
         return nil unles****@data*****?("slices")
-        @slices ||= @data["slices"].collect do |raw_slice|
-          Slice.new(@dataset, raw_slice)
-        end
+        @slices ||= create_slices
       end
 
       def select_slices(range=0..-1)
@@ -109,6 +107,12 @@ module Droonga
         end
       end
 
+      def create_slices
+        @data["slices"].collect do |raw_slice|
+          Slice.new(@dataset, raw_slice)
+        end
+      end
+
       def collect_all_nodes
         nodes = []
         slices.each do |slice|
-------------- next part --------------
HTML����������������������������...
Download 



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