Class: Tina4::GraphAdapter
- Inherits:
-
Object
- Object
- Tina4::GraphAdapter
show all
- Defined in:
- lib/tina4/graph.rb
Overview
The one surface every graph engine implements. Raising stubs — a driver that
does not override a method fails LOUDLY, naming itself and the method.
Instance Method Summary
collapse
-
#add_edge(_from_id, _to_id, _type, _properties = nil) ⇒ Object
-
#add_node(_label, _properties = nil) ⇒ Object
-- portable node/edge/traverse core ---------------------------------.
-
#close ⇒ Object
-- lifecycle --------------------------------------------------------.
-
#delete_node(_node_id) ⇒ Object
-
#execute(_text, _params = nil) ⇒ Object
-
#get_error ⇒ Object
Cause of the last failed operation, or nil.
-
#get_node(_node_id) ⇒ Object
-
#neighbors(_node_id, direction: "both", edge_type: nil, limit: 100) ⇒ Object
-
#query(_text, _params = nil) ⇒ Object
-- raw pass-through (engine-native dialect) -------------------------.
-
#traverse(_start_id, depth: 1, direction: "both", edge_type: nil, limit: 1000) ⇒ Object
-
#update_node(_node_id, _properties) ⇒ Object
Instance Method Details
#add_edge(_from_id, _to_id, _type, _properties = nil) ⇒ Object
210
211
212
|
# File 'lib/tina4/graph.rb', line 210
def add_edge(_from_id, _to_id, _type, _properties = nil)
not_implemented(__method__)
end
|
#add_node(_label, _properties = nil) ⇒ Object
-- portable node/edge/traverse core ---------------------------------
206
207
208
|
# File 'lib/tina4/graph.rb', line 206
def add_node(_label, _properties = nil)
not_implemented(__method__)
end
|
#close ⇒ Object
-- lifecycle --------------------------------------------------------
244
245
246
|
# File 'lib/tina4/graph.rb', line 244
def close
not_implemented(__method__)
end
|
#delete_node(_node_id) ⇒ Object
222
223
224
|
# File 'lib/tina4/graph.rb', line 222
def delete_node(_node_id)
not_implemented(__method__)
end
|
#execute(_text, _params = nil) ⇒ Object
239
240
241
|
# File 'lib/tina4/graph.rb', line 239
def execute(_text, _params = nil)
not_implemented(__method__)
end
|
#get_error ⇒ Object
Cause of the last failed operation, or nil.
249
250
251
|
# File 'lib/tina4/graph.rb', line 249
def get_error
@last_error
end
|
#get_node(_node_id) ⇒ Object
214
215
216
|
# File 'lib/tina4/graph.rb', line 214
def get_node(_node_id)
not_implemented(__method__)
end
|
#neighbors(_node_id, direction: "both", edge_type: nil, limit: 100) ⇒ Object
226
227
228
|
# File 'lib/tina4/graph.rb', line 226
def neighbors(_node_id, direction: "both", edge_type: nil, limit: 100)
not_implemented(__method__)
end
|
#query(_text, _params = nil) ⇒ Object
-- raw pass-through (engine-native dialect) -------------------------
235
236
237
|
# File 'lib/tina4/graph.rb', line 235
def query(_text, _params = nil)
not_implemented(__method__)
end
|
#traverse(_start_id, depth: 1, direction: "both", edge_type: nil, limit: 1000) ⇒ Object
230
231
232
|
# File 'lib/tina4/graph.rb', line 230
def traverse(_start_id, depth: 1, direction: "both", edge_type: nil, limit: 1000)
not_implemented(__method__)
end
|
#update_node(_node_id, _properties) ⇒ Object
218
219
220
|
# File 'lib/tina4/graph.rb', line 218
def update_node(_node_id, _properties)
not_implemented(__method__)
end
|