[Groonga-commit] droonga/droonga-engine at b6e54a5 [master] Remove needless suffix

Back to archive index

YUKI Piro Hiroshi null+****@clear*****
Fri Dec 12 00:32:28 JST 2014


YUKI "Piro" Hiroshi	2014-12-12 00:32:28 +0900 (Fri, 12 Dec 2014)

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

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

  Message:
    Remove needless suffix

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

  Modified: lib/droonga/catalog/dataset.rb (+9 -9)
===================================================================
--- lib/droonga/catalog/dataset.rb    2014-12-12 00:31:16 +0900 (2814f23)
+++ lib/droonga/catalog/dataset.rb    2014-12-12 00:32:28 +0900 (bf7881d)
@@ -23,36 +23,36 @@ module Droonga
 
       attr_reader :name
 
-      def initialize(name, raw_dataset)
+      def initialize(name, raw)
         @name = name
-        @raw_dataset = raw_dataset
+        @raw = raw
         @schema = nil
       end
 
       # provided for compatibility
       def [](key)
-        @raw_dataset[key]
+        @raw[key]
       end
 
       # provided for compatibility
       def []=(key, value)
-        @raw_dataset[key] = value
+        @raw[key] = value
       end
 
       def schema
-        @schema ||= Schema.new(@name, @raw_dataset["schema"])
+        @schema ||= Schema.new(@name, @raw["schema"])
       end
 
       def plugins
-        @raw_dataset["plugins"] || []
+        @raw["plugins"] || []
       end
 
       def fact
-        @raw_dataset["fact"]
+        @raw["fact"]
       end
 
       def n_workers
-        @raw_dataset["nWorkers"] || 0
+        @raw["nWorkers"] || 0
       end
 
       #XXX Currently, dataset has a property named "replicas" so
@@ -60,7 +60,7 @@ module Droonga
       #    We must introduce a new property "volume" to provide
       #    ReplicasVolume safely.
       def replicas
-        @replicas ||= ReplicasVolume.new(self, @raw_dataset)
+        @replicas ||= ReplicasVolume.new(self, @raw)
       end
 
       def all_nodes
-------------- next part --------------
HTML����������������������������...
Download 



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