class Jubatus::Graph::ShortestPathQuery
Constants
- TYPE
Attributes
max_hop[R]
query[R]
source[R]
target[R]
Public Class Methods
from_msgpack(m)
click to toggle source
# File lib/jubatus/graph/types.rb, line 163 def ShortestPathQuery.from_msgpack(m) val = TYPE.from_msgpack(m) ShortestPathQuery.new(*val) end
new(source, target, max_hop, query)
click to toggle source
# File lib/jubatus/graph/types.rb, line 151 def initialize(source, target, max_hop, query) @source = source @target = target @max_hop = max_hop @query = query end
Public Instance Methods
to_msgpack(out = '')
click to toggle source
# File lib/jubatus/graph/types.rb, line 158 def to_msgpack(out = '') t = [@source, @target, @max_hop, @query] return TYPE.to_msgpack(t) end
to_s()
click to toggle source
# File lib/jubatus/graph/types.rb, line 168 def to_s gen = Jubatus::Common::MessageStringGenerator.new gen.open("shortest_path_query") gen.add("source", @source) gen.add("target", @target) gen.add("max_hop", @max_hop) gen.add("query", @query) gen.close() return gen.to_s end