module Fluent::GridDBData

Public Instance Methods

chunk_convert(chunk) click to toggle source

Format for chunk data

# File lib/fluent/plugin/griddb_data.rb, line 8
def chunk_convert(chunk)
        arrays_2 = Array.new
        tmp = Array.new
        chunk.msgpack_each do |time, record|
                tmp = hash_to_array(record)
                arrays_2.push(tmp)
        end                  
        arrays_2
end
convert(record) click to toggle source

Format for each record

# File lib/fluent/plugin/griddb_data.rb, line 19
def convert(record)
        arrays_2 = Array.new
        tmp = hash_to_array(record)
        arrays_2.push(tmp)
end
hash_to_array(record) click to toggle source

Covert from hash object to array

# File lib/fluent/plugin/griddb_data.rb, line 26
def hash_to_array(record)
        arr = Array.new
        record.map do |key, val |
                arr.push(val)
        end                  
        arr
end