Kouhei Sutou
null+****@clear*****
Fri Dec 20 17:42:11 JST 2013
Kouhei Sutou 2013-12-20 17:42:11 +0900 (Fri, 20 Dec 2013) New Revision: 2a5029be745ca000d12d6f9b2d341d6a6ed7961b https://github.com/droonga/fluent-plugin-droonga/commit/2a5029be745ca000d12d6f9b2d341d6a6ed7961b Message: groonga command converter: use "message" instead of "envelope" Modified files: lib/groonga_command_converter.rb Modified: lib/groonga_command_converter.rb (+5 -5) =================================================================== --- lib/groonga_command_converter.rb 2013-12-20 17:41:04 +0900 (c8a4322) +++ lib/groonga_command_converter.rb 2013-12-20 17:42:11 +0900 (449ae79) @@ -67,7 +67,7 @@ module Droonga end private - def create_envelope(type, body) + def create_message(type, body) id = @options[:id] if id.nil? id = new_unique_id @@ -99,11 +99,11 @@ module Droonga end def create_table_create_command(command) - create_envelope("table_create", command.arguments) + create_message("table_create", command.arguments) end def create_column_create_command(command) - create_envelope("column_create", command.arguments) + create_message("column_create", command.arguments) end def split_load_command_to_add_commands(command, &block) @@ -126,12 +126,12 @@ module Droonga end body[:values] = record_values unless record_values.empty? - yield create_envelope("add", body) + yield create_message("add", body) end end def create_select_command(command) - create_envelope("select", command.arguments) + create_message("select", command.arguments) end end end -------------- next part -------------- HTML����������������������������... Download