class Jubatus::Burst::Client::Burst

Public Class Methods

new(host, port, name, timeout_sec=10) click to toggle source
Calls superclass method Jubatus::Common::ClientBase::new
# File lib/jubatus/burst/client.rb, line 16
def initialize(host, port, name, timeout_sec=10)
  super
end

Public Instance Methods

add_documents(data) click to toggle source
# File lib/jubatus/burst/client.rb, line 20
def add_documents(data)
  @jubatus_client.call("add_documents", [data], TInt.new(true, 4), [TList.new(
      TUserDef.new(Document))])
end
add_keyword(keyword) click to toggle source
# File lib/jubatus/burst/client.rb, line 50
def add_keyword(keyword)
  @jubatus_client.call("add_keyword", [keyword], TBool.new, [TUserDef.new(
      KeywordWithParams)])
end
clear() click to toggle source
# File lib/jubatus/burst/client.rb, line 63
def clear
  @jubatus_client.call("clear", [], TBool.new, [])
end
get_all_bursted_results() click to toggle source
# File lib/jubatus/burst/client.rb, line 35
def get_all_bursted_results
  @jubatus_client.call("get_all_bursted_results", [], TMap.new(TString.new,
      TUserDef.new(Window)), [])
end
get_all_bursted_results_at(pos) click to toggle source
# File lib/jubatus/burst/client.rb, line 40
def get_all_bursted_results_at(pos)
  @jubatus_client.call("get_all_bursted_results_at", [pos], TMap.new(
      TString.new, TUserDef.new(Window)), [TFloat.new])
end
get_all_keywords() click to toggle source
# File lib/jubatus/burst/client.rb, line 45
def get_all_keywords
  @jubatus_client.call("get_all_keywords", [], TList.new(TUserDef.new(
      KeywordWithParams)), [])
end
get_result(keyword) click to toggle source
# File lib/jubatus/burst/client.rb, line 25
def get_result(keyword)
  @jubatus_client.call("get_result", [keyword], TUserDef.new(Window),
      [TString.new])
end
get_result_at(keyword, pos) click to toggle source
# File lib/jubatus/burst/client.rb, line 30
def get_result_at(keyword, pos)
  @jubatus_client.call("get_result_at", [keyword, pos], TUserDef.new(Window),
      [TString.new, TFloat.new])
end
remove_all_keywords() click to toggle source
# File lib/jubatus/burst/client.rb, line 59
def remove_all_keywords
  @jubatus_client.call("remove_all_keywords", [], TBool.new, [])
end
remove_keyword(keyword) click to toggle source
# File lib/jubatus/burst/client.rb, line 55
def remove_keyword(keyword)
  @jubatus_client.call("remove_keyword", [keyword], TBool.new, [TString.new])
end