class Jubatus::Burst::Window

Constants

TYPE

Attributes

batches[R]
start_pos[R]

Public Class Methods

from_msgpack(m) click to toggle source
# File lib/jubatus/burst/types.rb, line 93
def Window.from_msgpack(m)
  val = TYPE.from_msgpack(m)
  Window.new(*val)
end
new(start_pos, batches) click to toggle source
# File lib/jubatus/burst/types.rb, line 83
def initialize(start_pos, batches)
  @start_pos = start_pos
  @batches = batches
end

Public Instance Methods

to_msgpack(out = '') click to toggle source
# File lib/jubatus/burst/types.rb, line 88
def to_msgpack(out = '')
  t = [@start_pos, @batches]
  return TYPE.to_msgpack(t)
end
to_s() click to toggle source
# File lib/jubatus/burst/types.rb, line 98
def to_s
  gen = Jubatus::Common::MessageStringGenerator.new
  gen.open("window")
  gen.add("start_pos", @start_pos)
  gen.add("batches", @batches)
  gen.close()
  return gen.to_s
end