class RecordField
Public Class Methods
new(name, type)
click to toggle source
# File lib/fluent/plugin/datahub/datahub-record-schema.rb, line 5 def initialize(name, type) @name = name @type = type end
Public Instance Methods
get_name()
click to toggle source
# File lib/fluent/plugin/datahub/datahub-record-schema.rb, line 10 def get_name() return @name end
get_type()
click to toggle source
# File lib/fluent/plugin/datahub/datahub-record-schema.rb, line 14 def get_type() return @type end
to_json(*a)
click to toggle source
# File lib/fluent/plugin/datahub/datahub-record-schema.rb, line 18 def to_json(*a) field_map = {} field_map["name"] = @name field_map["type"] = @type return field_map.to_json(*a) end