Kouhei Sutou
null+****@clear*****
Mon Jun 1 13:23:14 JST 2015
Kouhei Sutou 2015-06-01 13:23:14 +0900 (Mon, 01 Jun 2015) New Revision: f66e80cbb207920fcb9df7a08147bb40a78eb6f4 https://github.com/groonga/fluent-plugin-groonga/commit/f66e80cbb207920fcb9df7a08147bb40a78eb6f4 Message: Use more meaningful name Modified files: lib/fluent/plugin/out_groonga.rb Modified: lib/fluent/plugin/out_groonga.rb (+3 -3) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2015-06-01 11:26:29 +0900 (50f4724) +++ lib/fluent/plugin/out_groonga.rb 2015-06-01 13:23:14 +0900 (c2cdca0) @@ -296,7 +296,7 @@ module Fluent nonexistent_columns = {} records.each do |record| record.each do |key, value| - next unless valid_column?(key) + next if pseudo_column_name?(key) column = @columns[key] if column.nil? nonexistent_columns[key] ||= [] @@ -346,8 +346,8 @@ module Fluent end end - def valid_column?(name) - not name.start_with?("_") + def pseudo_column_name?(name) + name.start_with?("_") end def create_column(name, sample_values) -------------- next part -------------- HTML����������������������������...Download