class Jubatus::Graph::Query

Constants

TYPE

Attributes

from_id[R]
to_id[R]

Public Class Methods

from_msgpack(m) click to toggle source
# File lib/jubatus/graph/types.rb, line 60
def Query.from_msgpack(m)
  val = TYPE.from_msgpack(m)
  Query.new(*val)
end
new(from_id, to_id) click to toggle source
# File lib/jubatus/graph/types.rb, line 50
def initialize(from_id, to_id)
  @from_id = from_id
  @to_id = to_id
end

Public Instance Methods

to_msgpack(out = '') click to toggle source
# File lib/jubatus/graph/types.rb, line 55
def to_msgpack(out = '')
  t = [@from_id, @to_id]
  return TYPE.to_msgpack(t)
end
to_s() click to toggle source
# File lib/jubatus/graph/types.rb, line 65
def to_s
  gen = Jubatus::Common::MessageStringGenerator.new
  gen.open("query")
  gen.add("from_id", @from_id)
  gen.add("to_id", @to_id)
  gen.close()
  return gen.to_s
end