neo4j-core 0.0.6-java → 0.0.7-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
@@ -21,6 +21,8 @@ The Neo4j module is public and the Neo4j::Core(::*) are internal modules.
|
|
21
21
|
|
22
22
|
{Neo4j::Cypher} Cypher Query Generator, see RSpec spec/neo4j/cypher_spec
|
23
23
|
|
24
|
+
{Neo4j::Algo} Included algorithms, like shortest path
|
25
|
+
|
24
26
|
== Custom Index
|
25
27
|
|
26
28
|
You can create your own indexer.
|
@@ -88,7 +88,7 @@ module Neo4j
|
|
88
88
|
# You only need to implement the methods that you need.
|
89
89
|
#
|
90
90
|
class EventHandler
|
91
|
-
include
|
91
|
+
include Java::OrgNeo4jGraphdbEvent::TransactionEventHandler
|
92
92
|
|
93
93
|
def initialize
|
94
94
|
@listeners = []
|
@@ -61,11 +61,11 @@ module Neo4j
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# Loads a node or wrapped node given a native java node or an id.
|
64
|
-
# If there is a Ruby wrapper for the node then it will create a Ruby object that will
|
65
|
-
# wrap the java node
|
66
|
-
# To implement a wrapper you must implement a wrapper class method in the Neo4j::Node or Neo4j::Relationship.
|
64
|
+
# If there is a Ruby wrapper for the node then it will create and return a Ruby object that will
|
65
|
+
# wrap the java node.
|
67
66
|
#
|
68
|
-
# @
|
67
|
+
# @param [nil, #to_i] node_id the neo4j node id
|
68
|
+
# @return [Object, Neo4j::Node, nil] If the node does not exist it will return nil otherwise the loaded node or wrapped node.
|
69
69
|
def load(node_id, db = Neo4j.started_db)
|
70
70
|
node = _load(node_id, db)
|
71
71
|
node && node.wrapper
|
@@ -5,9 +5,7 @@ module Neo4j
|
|
5
5
|
# @return [Hash] all properties plus the id of the node with the key <tt>_neo_id</tt>
|
6
6
|
def props
|
7
7
|
ret = {"_neo_id" => neo_id}
|
8
|
-
|
9
|
-
while (iter.hasNext) do
|
10
|
-
key = iter.next
|
8
|
+
property_keys.each do |key|
|
11
9
|
ret[key] = get_property(key)
|
12
10
|
end
|
13
11
|
ret
|
data/lib/neo4j-core/version.rb
CHANGED
data/lib/neo4j/neo4j.rb
CHANGED
@@ -221,15 +221,16 @@ module Neo4j
|
|
221
221
|
# Neo4j.management(org.neo4j.management.HighAvailability).isMaster
|
222
222
|
#
|
223
223
|
# @param jmx_clazz the JMX class http://api.neo4j.org/current/org/neo4j/management/package-summary.html
|
224
|
-
# @param this_db default currently
|
224
|
+
# @param this_db default currently running instance or a newly started neo4j db instance
|
225
225
|
# @see for the jmx_clazz p
|
226
|
-
|
226
|
+
# @node this
|
227
|
+
def management(jmx_clazz = Java::OrgNeo4jJmx::Primitives, this_db = self.started_db)
|
227
228
|
this_db.management(jmx_clazz)
|
228
229
|
end
|
229
230
|
|
230
231
|
# @return [Enumerable] all nodes in the database
|
231
232
|
def all_nodes(this_db = self.started_db)
|
232
|
-
|
233
|
+
Enumerator.new(this_db, :each_node)
|
233
234
|
end
|
234
235
|
|
235
236
|
# @return [Enumerable] all nodes in the database but not wrapped in ruby classes.
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Andreas Ronge
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-04-
|
13
|
+
date: 2012-04-08 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: neo4j-community
|