Class: Flock::Edges::FlockDB::Client
- Inherits:
-
Object
- Object
- Flock::Edges::FlockDB::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/flock/gen-rb/flock_d_b.rb
Instance Method Summary collapse
- #contains(source_id, graph_id, destination_id) ⇒ Object
- #contains_metadata(source_id, graph_id) ⇒ Object
- #count(operations) ⇒ Object
- #count2(queries) ⇒ Object
- #execute(operations) ⇒ Object
- #get(source_id, graph_id, destination_id) ⇒ Object
- #get_metadata(source_id, graph_id) ⇒ Object
- #recv_contains ⇒ Object
- #recv_contains_metadata ⇒ Object
- #recv_count ⇒ Object
- #recv_count2 ⇒ Object
- #recv_execute ⇒ Object
- #recv_get ⇒ Object
- #recv_get_metadata ⇒ Object
- #recv_select ⇒ Object
- #recv_select2 ⇒ Object
- #recv_select_edges ⇒ Object
- #select(operations, page) ⇒ Object
- #select2(queries) ⇒ Object
- #select_edges(queries) ⇒ Object
- #send_contains(source_id, graph_id, destination_id) ⇒ Object
- #send_contains_metadata(source_id, graph_id) ⇒ Object
- #send_count(operations) ⇒ Object
- #send_count2(queries) ⇒ Object
- #send_execute(operations) ⇒ Object
- #send_get(source_id, graph_id, destination_id) ⇒ Object
- #send_get_metadata(source_id, graph_id) ⇒ Object
- #send_select(operations, page) ⇒ Object
- #send_select2(queries) ⇒ Object
- #send_select_edges(queries) ⇒ Object
Instance Method Details
#contains(source_id, graph_id, destination_id) ⇒ Object
16 17 18 19 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 16 def contains(source_id, graph_id, destination_id) send_contains(source_id, graph_id, destination_id) return recv_contains() end |
#contains_metadata(source_id, graph_id) ⇒ Object
64 65 66 67 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 64 def (source_id, graph_id) (source_id, graph_id) return () end |
#count(operations) ⇒ Object
143 144 145 146 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 143 def count(operations) send_count(operations) return recv_count() end |
#count2(queries) ⇒ Object
96 97 98 99 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 96 def count2(queries) send_count2(queries) return recv_count2() end |
#execute(operations) ⇒ Object
128 129 130 131 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 128 def execute(operations) send_execute(operations) recv_execute() end |
#get(source_id, graph_id, destination_id) ⇒ Object
32 33 34 35 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 32 def get(source_id, graph_id, destination_id) send_get(source_id, graph_id, destination_id) return recv_get() end |
#get_metadata(source_id, graph_id) ⇒ Object
48 49 50 51 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 48 def (source_id, graph_id) (source_id, graph_id) return () end |
#recv_contains ⇒ Object
25 26 27 28 29 30 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 25 def recv_contains() result = (Contains_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'contains failed: unknown result') end |
#recv_contains_metadata ⇒ Object
73 74 75 76 77 78 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 73 def () result = (Contains_metadata_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'contains_metadata failed: unknown result') end |
#recv_count ⇒ Object
152 153 154 155 156 157 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 152 def recv_count() result = (Count_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'count failed: unknown result') end |
#recv_count2 ⇒ Object
105 106 107 108 109 110 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 105 def recv_count2() result = (Count2_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'count2 failed: unknown result') end |
#recv_execute ⇒ Object
137 138 139 140 141 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 137 def recv_execute() result = (Execute_result) raise result.ex unless result.ex.nil? return end |
#recv_get ⇒ Object
41 42 43 44 45 46 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 41 def recv_get() result = (Get_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result') end |
#recv_get_metadata ⇒ Object
57 58 59 60 61 62 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 57 def () result = (Get_metadata_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_metadata failed: unknown result') end |
#recv_select ⇒ Object
168 169 170 171 172 173 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 168 def recv_select() result = (Select_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'select failed: unknown result') end |
#recv_select2 ⇒ Object
89 90 91 92 93 94 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 89 def recv_select2() result = (Select2_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'select2 failed: unknown result') end |
#recv_select_edges ⇒ Object
121 122 123 124 125 126 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 121 def recv_select_edges() result = (Select_edges_result) return result.success unless result.success.nil? raise result.ex unless result.ex.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'select_edges failed: unknown result') end |
#select(operations, page) ⇒ Object
159 160 161 162 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 159 def select(operations, page) send_select(operations, page) return recv_select() end |
#select2(queries) ⇒ Object
80 81 82 83 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 80 def select2(queries) send_select2(queries) return recv_select2() end |
#select_edges(queries) ⇒ Object
112 113 114 115 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 112 def select_edges(queries) send_select_edges(queries) return recv_select_edges() end |
#send_contains(source_id, graph_id, destination_id) ⇒ Object
21 22 23 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 21 def send_contains(source_id, graph_id, destination_id) ('contains', Contains_args, :source_id => source_id, :graph_id => graph_id, :destination_id => destination_id) end |
#send_contains_metadata(source_id, graph_id) ⇒ Object
69 70 71 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 69 def (source_id, graph_id) ('contains_metadata', Contains_metadata_args, :source_id => source_id, :graph_id => graph_id) end |
#send_count(operations) ⇒ Object
148 149 150 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 148 def send_count(operations) ('count', Count_args, :operations => operations) end |
#send_count2(queries) ⇒ Object
101 102 103 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 101 def send_count2(queries) ('count2', Count2_args, :queries => queries) end |
#send_execute(operations) ⇒ Object
133 134 135 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 133 def send_execute(operations) ('execute', Execute_args, :operations => operations) end |
#send_get(source_id, graph_id, destination_id) ⇒ Object
37 38 39 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 37 def send_get(source_id, graph_id, destination_id) ('get', Get_args, :source_id => source_id, :graph_id => graph_id, :destination_id => destination_id) end |
#send_get_metadata(source_id, graph_id) ⇒ Object
53 54 55 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 53 def (source_id, graph_id) ('get_metadata', Get_metadata_args, :source_id => source_id, :graph_id => graph_id) end |
#send_select(operations, page) ⇒ Object
164 165 166 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 164 def send_select(operations, page) ('select', Select_args, :operations => operations, :page => page) end |
#send_select2(queries) ⇒ Object
85 86 87 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 85 def send_select2(queries) ('select2', Select2_args, :queries => queries) end |
#send_select_edges(queries) ⇒ Object
117 118 119 |
# File 'lib/flock/gen-rb/flock_d_b.rb', line 117 def send_select_edges(queries) ('select_edges', Select_edges_args, :queries => queries) end |