Class: Rebat::Thrift::RebatDB::Client
- Inherits:
-
Object
- Object
- Rebat::Thrift::RebatDB::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/rebat/thrift/rebat_d_b.rb
Instance Method Summary collapse
- #addQuery(edge) ⇒ Object
- #deleteQuery(edge) ⇒ Object
- #recv_addQuery ⇒ Object
- #recv_deleteQuery ⇒ Object
- #recv_selectQuery ⇒ Object
- #recv_truncate ⇒ Object
- #recv_updateWeightQuery ⇒ Object
- #selectQuery(queryList) ⇒ Object
- #send_addQuery(edge) ⇒ Object
- #send_deleteQuery(edge) ⇒ Object
- #send_selectQuery(queryList) ⇒ Object
- #send_truncate ⇒ Object
- #send_updateWeightQuery(edge, weight) ⇒ Object
- #truncate ⇒ Object
- #updateWeightQuery(edge, weight) ⇒ Object
Instance Method Details
#addQuery(edge) ⇒ Object
16 17 18 19 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 16 def addQuery(edge) send_addQuery(edge) return recv_addQuery() end |
#deleteQuery(edge) ⇒ Object
31 32 33 34 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 31 def deleteQuery(edge) send_deleteQuery(edge) return recv_deleteQuery() end |
#recv_addQuery ⇒ Object
25 26 27 28 29 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 25 def recv_addQuery() result = (AddQuery_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addQuery failed: unknown result') end |
#recv_deleteQuery ⇒ Object
40 41 42 43 44 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 40 def recv_deleteQuery() result = (DeleteQuery_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'deleteQuery failed: unknown result') end |
#recv_selectQuery ⇒ Object
70 71 72 73 74 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 70 def recv_selectQuery() result = (SelectQuery_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectQuery failed: unknown result') end |
#recv_truncate ⇒ Object
85 86 87 88 89 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 85 def recv_truncate() result = (Truncate_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'truncate failed: unknown result') end |
#recv_updateWeightQuery ⇒ Object
55 56 57 58 59 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 55 def recv_updateWeightQuery() result = (UpdateWeightQuery_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateWeightQuery failed: unknown result') end |
#selectQuery(queryList) ⇒ Object
61 62 63 64 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 61 def selectQuery(queryList) send_selectQuery(queryList) return recv_selectQuery() end |
#send_addQuery(edge) ⇒ Object
21 22 23 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 21 def send_addQuery(edge) ('addQuery', AddQuery_args, :edge => edge) end |
#send_deleteQuery(edge) ⇒ Object
36 37 38 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 36 def send_deleteQuery(edge) ('deleteQuery', DeleteQuery_args, :edge => edge) end |
#send_selectQuery(queryList) ⇒ Object
66 67 68 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 66 def send_selectQuery(queryList) ('selectQuery', SelectQuery_args, :queryList => queryList) end |
#send_truncate ⇒ Object
81 82 83 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 81 def send_truncate() ('truncate', Truncate_args) end |
#send_updateWeightQuery(edge, weight) ⇒ Object
51 52 53 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 51 def send_updateWeightQuery(edge, weight) ('updateWeightQuery', UpdateWeightQuery_args, :edge => edge, :weight => weight) end |
#truncate ⇒ Object
76 77 78 79 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 76 def truncate() send_truncate() return recv_truncate() end |
#updateWeightQuery(edge, weight) ⇒ Object
46 47 48 49 |
# File 'lib/rebat/thrift/rebat_d_b.rb', line 46 def updateWeightQuery(edge, weight) send_updateWeightQuery(edge, weight) return recv_updateWeightQuery() end |