class Jubatus::Burst::Batch
Constants
- TYPE
Attributes
all_data_count[R]
burst_weight[R]
relevant_data_count[R]
Public Class Methods
from_msgpack(m)
click to toggle source
# File lib/jubatus/burst/types.rb, line 60 def Batch.from_msgpack(m) val = TYPE.from_msgpack(m) Batch.new(*val) end
new(all_data_count, relevant_data_count, burst_weight)
click to toggle source
# File lib/jubatus/burst/types.rb, line 49 def initialize(all_data_count, relevant_data_count, burst_weight) @all_data_count = all_data_count @relevant_data_count = relevant_data_count @burst_weight = burst_weight end
Public Instance Methods
to_msgpack(out = '')
click to toggle source
# File lib/jubatus/burst/types.rb, line 55 def to_msgpack(out = '') t = [@all_data_count, @relevant_data_count, @burst_weight] return TYPE.to_msgpack(t) end
to_s()
click to toggle source
# File lib/jubatus/burst/types.rb, line 65 def to_s gen = Jubatus::Common::MessageStringGenerator.new gen.open("batch") gen.add("all_data_count", @all_data_count) gen.add("relevant_data_count", @relevant_data_count) gen.add("burst_weight", @burst_weight) gen.close() return gen.to_s end