neo4j 1.0.0.beta.23-java → 1.0.0.beta.24-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/lib/neo4j.rb +7 -0
  2. data/lib/neo4j/config.rb +2 -9
  3. data/lib/neo4j/event_handler.rb +51 -1
  4. data/lib/neo4j/functions/count.rb +33 -0
  5. data/lib/neo4j/functions/function.rb +72 -0
  6. data/lib/neo4j/functions/sum.rb +27 -0
  7. data/lib/neo4j/mapping/class_methods/property.rb +2 -1
  8. data/lib/neo4j/mapping/class_methods/rule.rb +30 -173
  9. data/lib/neo4j/mapping/node_mixin.rb +3 -1
  10. data/lib/neo4j/mapping/rule.rb +155 -0
  11. data/lib/neo4j/mapping/rule_node.rb +177 -0
  12. data/lib/neo4j/neo4j.rb +0 -4
  13. data/lib/neo4j/node.rb +12 -2
  14. data/lib/neo4j/node_relationship.rb +1 -1
  15. data/lib/neo4j/node_traverser.rb +11 -1
  16. data/lib/neo4j/rails/finders.rb +1 -1
  17. data/lib/neo4j/rails/persistence.rb +1 -0
  18. data/lib/neo4j/rails/relationships/relationships.rb +8 -5
  19. data/lib/neo4j/relationship.rb +12 -1
  20. data/lib/neo4j/type_converters.rb +121 -62
  21. data/lib/neo4j/version.rb +1 -1
  22. data/lib/tmp/neo4j/index/lucene-store.db +0 -0
  23. data/lib/tmp/neo4j/lucene-fulltext/lucene-store.db +0 -0
  24. data/lib/tmp/neo4j/lucene/lucene-store.db +0 -0
  25. data/lib/tmp/neo4j/messages.log +43 -176
  26. data/lib/tmp/neo4j/neostore +0 -0
  27. data/lib/tmp/neo4j/neostore.nodestore.db +0 -0
  28. data/lib/tmp/neo4j/neostore.nodestore.db.id +0 -0
  29. data/lib/tmp/neo4j/neostore.propertystore.db +0 -0
  30. data/lib/tmp/neo4j/neostore.propertystore.db.id +0 -0
  31. data/lib/tmp/neo4j/neostore.propertystore.db.index.keys +0 -0
  32. data/lib/tmp/neo4j/neostore.propertystore.db.index.keys.id +0 -0
  33. data/lib/tmp/neo4j/neostore.propertystore.db.strings +0 -0
  34. data/lib/tmp/neo4j/neostore.propertystore.db.strings.id +0 -0
  35. data/lib/tmp/neo4j/neostore.relationshipstore.db +0 -0
  36. data/lib/tmp/neo4j/neostore.relationshipstore.db.id +0 -0
  37. data/lib/tmp/neo4j/neostore.relationshiptypestore.db +0 -0
  38. data/lib/tmp/neo4j/neostore.relationshiptypestore.db.id +0 -0
  39. data/lib/tmp/neo4j/neostore.relationshiptypestore.db.names +0 -0
  40. data/lib/tmp/neo4j/neostore.relationshiptypestore.db.names.id +0 -0
  41. data/lib/tmp/neo4j/tm_tx_log.1 +0 -0
  42. metadata +8 -11
  43. data/lib/tmp/neo4j/index.db +0 -0
  44. data/lib/tmp/neo4j/index/lucene/node/Person-exact/_0.cfs +0 -0
  45. data/lib/tmp/neo4j/index/lucene/node/Person-exact/_1.cfs +0 -0
  46. data/lib/tmp/neo4j/index/lucene/node/Person-exact/segments.gen +0 -0
  47. data/lib/tmp/neo4j/index/lucene/node/Person-exact/segments_3 +0 -0
  48. data/lib/tmp/neo4j/index/lucene/node/Thing-exact/_0.cfs +0 -0
  49. data/lib/tmp/neo4j/index/lucene/node/Thing-exact/segments.gen +0 -0
  50. data/lib/tmp/neo4j/index/lucene/node/Thing-exact/segments_2 +0 -0
@@ -9,8 +9,19 @@ module Neo4j
9
9
  alias_method :_other_node, :getOtherNode
10
10
 
11
11
 
12
+ # Deletes the relationship between the start and end node
13
+ #
14
+ # ==== Returns
15
+ # true :: if the relationship was deleted
16
+ # false :: if relationship was NOT deleted, maybe it has already been deleted
17
+ #
12
18
  def del
13
- delete
19
+ begin
20
+ delete
21
+ true
22
+ rescue
23
+ false
24
+ end
14
25
  end
15
26
 
16
27
  def end_node # :nodoc:
@@ -1,29 +1,63 @@
1
1
  module Neo4j
2
2
 
3
3
  # Responsible for converting values from and to Java Neo4j and Lucene.
4
- # You can implement your own converter by implementing the method <tt>to_java</tt> and <tt>to_ruby</tt>
5
- # and add it to the Neo4j::Config with the key <tt>:converters</tt>
4
+ # You can implement your own converter by implementing the method <tt>convert?</tt>
5
+ # <tt>to_java</tt> and <tt>to_ruby</tt> in this module.
6
6
  #
7
- # There are currently two default converters that are triggered when a Date or a DateTime is read or written.
7
+ # There are currently three default converters that are triggered when a Time, Date or a DateTime is read or written
8
+ # if there is a type declared for the property.
9
+ #
10
+ # ==== Example
11
+ #
12
+ # Example of writing your own marshalling converter:
13
+ #
14
+ # class Foo
15
+ # include Neo4j::NodeMixin
16
+ # property :thing, :type => MyType
17
+ # end
18
+ #
19
+ # module Neo4j::TypeConverters
20
+ # class MyTypeConverter
21
+ # class << self
22
+ # def convert?(type)
23
+ # type == MyType
24
+ # end
25
+ #
26
+ # def to_java(val)
27
+ # "silly:#{val}"
28
+ # end
29
+ #
30
+ # def to_ruby(val)
31
+ # val.sub(/silly:/, '')
32
+ # end
33
+ # end
34
+ # end
35
+ # end
8
36
  #
9
37
  module TypeConverters
10
38
 
11
- # The default converter to use if there isn't a specific converter for the type
12
- class DefaultConverter
13
- class << self
14
- def to_java(value)
15
- value
16
- end
17
-
18
- def to_ruby(value)
19
- value
20
- end
21
- end
22
- end
23
-
39
+ # The default converter to use if there isn't a specific converter for the type
40
+ class DefaultConverter
41
+ class << self
42
+
43
+ def to_java(value)
44
+ value
45
+ end
46
+
47
+ def to_ruby(value)
48
+ value
49
+ end
50
+ end
51
+ end
52
+
24
53
  # Converts Date objects to Java long types. Must be timezone UTC.
25
54
  class DateConverter
26
55
  class << self
56
+
57
+ def convert?(clazz)
58
+ Date == clazz
59
+ end
60
+
27
61
  def to_java(value)
28
62
  return nil if value.nil?
29
63
  Time.utc(value.year, value.month, value.day).to_i
@@ -39,6 +73,11 @@ module Neo4j
39
73
  # Converts DateTime objects to and from Java long types. Must be timezone UTC.
40
74
  class DateTimeConverter
41
75
  class << self
76
+
77
+ def convert?(clazz)
78
+ DateTime == clazz
79
+ end
80
+
42
81
  # Converts the given DateTime (UTC) value to an Fixnum.
43
82
  # Only utc times are supported !
44
83
  def to_java(value)
@@ -53,10 +92,15 @@ module Neo4j
53
92
  end
54
93
  end
55
94
  end
56
-
95
+
57
96
  class TimeConverter
58
- class << self
59
- # Converts the given DateTime (UTC) value to an Fixnum.
97
+ class << self
98
+
99
+ def convert?(clazz)
100
+ Time == clazz
101
+ end
102
+
103
+ # Converts the given DateTime (UTC) value to an Fixnum.
60
104
  # Only utc times are supported !
61
105
  def to_java(value)
62
106
  return nil if value.nil?
@@ -67,51 +111,66 @@ module Neo4j
67
111
  return nil if value.nil?
68
112
  Time.at(value).utc
69
113
  end
70
- end
114
+ end
71
115
  end
72
116
 
73
117
  class << self
74
- # Always returns a converter that handles to_ruby or to_java
75
- def converter(type = nil)
76
- Neo4j.converters[type] || DefaultConverter
77
- end
78
-
79
- # Converts the given value to a Java type by using the registered converters.
80
- # It just looks at the class of the given value unless an attribute name is given.
81
- # It will convert it if there is a converter registered (in Neo4j::Config) for this value.
82
- def convert(value, attribute = nil, klass = nil)
83
- converter(attribute_type(value, attribute, klass)).to_java(value)
84
- end
85
-
86
- # Converts the given property (key, value) to Java by using configuration from the given class.
87
- # If no Converter is defined for this value then it simply returns the given value.
88
- def to_java(clazz, key, value)
89
- type = clazz._decl_props[key.to_sym] && clazz._decl_props[key.to_sym][:type]
90
- converter(type).to_java(value)
91
- end
92
-
93
- # Converts the given property (key, value) to Ruby by using configuration from the given class.
94
- # If no Converter is defined for this value then it simply returns the given value.
95
- def to_ruby(clazz, key, value)
96
- type = clazz._decl_props[key.to_sym] && clazz._decl_props[key.to_sym][:type]
97
- converter(type).to_ruby(value)
98
- end
99
-
100
- private
101
- def attribute_type(value, attribute = nil, klass = nil)
102
- type = (attribute && klass) ? attribute_type_from_attribute_and_klass(value, attribute, klass) : nil
103
- type || attribute_type_from_value(value)
104
- end
105
-
106
- def attribute_type_from_attribute_and_klass(value, attribute, klass)
107
- if klass.respond_to?(:_decl_props)
108
- (klass._decl_props.has_key?(attribute) && klass._decl_props[attribute][:type]) ? klass._decl_props[attribute][:type] : nil
109
- end
110
- end
111
-
112
- def attribute_type_from_value(value)
113
- value.class
114
- end
115
- end
118
+
119
+ # Mostly for testing purpose, You can use this method in order to
120
+ # add a converter while the neo4j has already started.
121
+ def converters=(converters)
122
+ @converters = converters
123
+ end
124
+
125
+ # Always returns a converter that handles to_ruby or to_java
126
+ def converter(type = nil)
127
+ @converters ||= begin
128
+ Neo4j::TypeConverters.constants.find_all do |c|
129
+ Neo4j::TypeConverters.const_get(c).respond_to?(:convert?)
130
+ end.map do |c|
131
+ Neo4j::TypeConverters.const_get(c)
132
+ end
133
+ end
134
+ (type && @converters.find { |c| c.convert?(type) }) || DefaultConverter
135
+ end
136
+
137
+ # Converts the given value to a Java type by using the registered converters.
138
+ # It just looks at the class of the given value unless an attribute name is given.
139
+ # It will convert it if there is a converter registered (in Neo4j::Config) for this value.
140
+ def convert(value, attribute = nil, klass = nil)
141
+ converter(attribute_type(value, attribute, klass)).to_java(value)
142
+ end
143
+
144
+ # Converts the given property (key, value) to Java if there is a type converter for given type.
145
+ # The type must also be declared using Neo4j::NodeMixin#property property_name, :type => clazz
146
+ # If no Converter is defined for this value then it simply returns the given value.
147
+ def to_java(clazz, key, value)
148
+ type = clazz._decl_props[key.to_sym] && clazz._decl_props[key.to_sym][:type]
149
+ converter(type).to_java(value)
150
+ end
151
+
152
+ # Converts the given property (key, value) to Ruby if there is a type converter for given type.
153
+ # If no Converter is defined for this value then it simply returns the given value.
154
+ def to_ruby(clazz, key, value)
155
+ type = clazz._decl_props[key.to_sym] && clazz._decl_props[key.to_sym][:type]
156
+ converter(type).to_ruby(value)
157
+ end
158
+
159
+ private
160
+ def attribute_type(value, attribute = nil, klass = nil)
161
+ type = (attribute && klass) ? attribute_type_from_attribute_and_klass(value, attribute, klass) : nil
162
+ type || attribute_type_from_value(value)
163
+ end
164
+
165
+ def attribute_type_from_attribute_and_klass(value, attribute, klass)
166
+ if klass.respond_to?(:_decl_props)
167
+ (klass._decl_props.has_key?(attribute) && klass._decl_props[attribute][:type]) ? klass._decl_props[attribute][:type] : nil
168
+ end
169
+ end
170
+
171
+ def attribute_type_from_value(value)
172
+ value.class
173
+ end
174
+ end
116
175
  end
117
176
  end
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "1.0.0.beta.23"
2
+ VERSION = "1.0.0.beta.24"
3
3
  end
Binary file
Binary file
@@ -1,176 +1,43 @@
1
- Thu Nov 25 13:54:56 CET 2010: Creating new db @ tmp/neo4j/neostore
2
- Thu Nov 25 13:54:57 CET 2010: Opened [tmp/neo4j/nioneo_logical.log.1] clean empty log, version=0
3
- Thu Nov 25 13:54:57 CET 2010: Opened [tmp/neo4j/lucene/lucene.log.1] clean empty log, version=0
4
- Thu Nov 25 13:54:57 CET 2010: Opened [tmp/neo4j/lucene-fulltext/lucene.log.1] clean empty log, version=0
5
- Thu Nov 25 13:54:57 CET 2010: Opened [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] clean empty log, version=0
6
- Thu Nov 25 13:54:57 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] initialized ok
7
- Thu Nov 25 13:54:57 CET 2010: TM new log: tm_tx_log.1
8
- Thu Nov 25 13:54:57 CET 2010: --- CONFIGURATION START ---
9
- Thu Nov 25 13:54:57 CET 2010: Physical mem: 4017MB, Heap size: 483MB
10
- Thu Nov 25 13:54:57 CET 2010: Kernel version: Neo4j - Graph Database Kernel 1.2-1.2.M04
11
- Thu Nov 25 13:54:57 CET 2010: Operating System: Linux; version: 2.6.32-25-generic-pae; arch: i386
12
- Thu Nov 25 13:54:57 CET 2010: VM Name: Java HotSpot(TM) Client VM
13
- Thu Nov 25 13:54:57 CET 2010: VM Vendor: Sun Microsystems Inc.
14
- Thu Nov 25 13:54:57 CET 2010: VM Version: 17.1-b03
15
- Thu Nov 25 13:54:57 CET 2010: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar
16
- Thu Nov 25 13:54:57 CET 2010: Class Path: :
17
- Thu Nov 25 13:54:57 CET 2010: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
18
- Thu Nov 25 13:54:57 CET 2010: Garbage Collector: Copy: [Eden Space, Survivor Space]
19
- Thu Nov 25 13:54:57 CET 2010: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
20
- Thu Nov 25 13:54:57 CET 2010: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djffi.boot.library.path=/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/i386-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/ppc-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar, -Djruby.home=/home/andreas/.rvm/rubies/jruby-1.5.5, -Djruby.lib=/home/andreas/.rvm/rubies/jruby-1.5.5/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
21
- Thu Nov 25 13:54:57 CET 2010:
22
- Thu Nov 25 13:54:57 CET 2010: create=true
23
- Thu Nov 25 13:54:57 CET 2010: dir=tmp/neo4j/lucene-fulltext
24
- Thu Nov 25 13:54:57 CET 2010: logical_log=tmp/neo4j/nioneo_logical.log
25
- Thu Nov 25 13:54:57 CET 2010: neo_store=tmp/neo4j/neostore
26
- Thu Nov 25 13:54:57 CET 2010: neostore.nodestore.db.mapped_memory=20M
27
- Thu Nov 25 13:54:57 CET 2010: neostore.propertystore.db.arrays.mapped_memory=130M
28
- Thu Nov 25 13:54:57 CET 2010: neostore.propertystore.db.index.keys.mapped_memory=1M
29
- Thu Nov 25 13:54:57 CET 2010: neostore.propertystore.db.index.mapped_memory=1M
30
- Thu Nov 25 13:54:57 CET 2010: neostore.propertystore.db.mapped_memory=90M
31
- Thu Nov 25 13:54:57 CET 2010: neostore.propertystore.db.strings.mapped_memory=130M
32
- Thu Nov 25 13:54:57 CET 2010: neostore.relationshipstore.db.mapped_memory=100M
33
- Thu Nov 25 13:54:57 CET 2010: rebuild_idgenerators_fast=true
34
- Thu Nov 25 13:54:57 CET 2010: store_dir=tmp/neo4j
35
- Thu Nov 25 13:54:57 CET 2010: --- CONFIGURATION END ---
36
- Thu Nov 25 13:54:57 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] loaded ok
37
- Thu Nov 25 14:02:17 CET 2010: Closed log tmp/neo4j/nioneo_logical.log
38
- Thu Nov 25 14:02:17 CET 2010: NeoStore closed
39
- Thu Nov 25 14:02:17 CET 2010: Closed log /home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log
40
- Thu Nov 25 14:02:17 CET 2010: Closed log tmp/neo4j/lucene/lucene.log
41
- Thu Nov 25 14:02:17 CET 2010: NeoStore closed
42
- Thu Nov 25 14:02:17 CET 2010: Closed log tmp/neo4j/lucene-fulltext/lucene.log
43
- Thu Nov 25 14:02:17 CET 2010: TM shutting down
44
- Thu Nov 25 14:36:51 CET 2010: Opened [tmp/neo4j/nioneo_logical.log.1] clean empty log, version=0
45
- Thu Nov 25 14:36:51 CET 2010: Opened [tmp/neo4j/lucene/lucene.log.1] clean empty log, version=0
46
- Thu Nov 25 14:36:51 CET 2010: Opened [tmp/neo4j/lucene-fulltext/lucene.log.1] clean empty log, version=0
47
- Thu Nov 25 14:36:51 CET 2010: Opened [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] clean empty log, version=0
48
- Thu Nov 25 14:36:51 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] initialized ok
49
- Thu Nov 25 14:36:51 CET 2010: TM opening log: tmp/neo4j/tm_tx_log.1
50
- Thu Nov 25 14:36:51 CET 2010: --- CONFIGURATION START ---
51
- Thu Nov 25 14:36:51 CET 2010: Physical mem: 4017MB, Heap size: 483MB
52
- Thu Nov 25 14:36:51 CET 2010: Kernel version: Neo4j - Graph Database Kernel 1.2-1.2.M04
53
- Thu Nov 25 14:36:51 CET 2010: Operating System: Linux; version: 2.6.32-25-generic-pae; arch: i386
54
- Thu Nov 25 14:36:51 CET 2010: VM Name: Java HotSpot(TM) Client VM
55
- Thu Nov 25 14:36:51 CET 2010: VM Vendor: Sun Microsystems Inc.
56
- Thu Nov 25 14:36:51 CET 2010: VM Version: 17.1-b03
57
- Thu Nov 25 14:36:51 CET 2010: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar
58
- Thu Nov 25 14:36:51 CET 2010: Class Path: :
59
- Thu Nov 25 14:36:51 CET 2010: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
60
- Thu Nov 25 14:36:51 CET 2010: Garbage Collector: Copy: [Eden Space, Survivor Space]
61
- Thu Nov 25 14:36:51 CET 2010: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
62
- Thu Nov 25 14:36:51 CET 2010: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djffi.boot.library.path=/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/i386-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/ppc-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar, -Djruby.home=/home/andreas/.rvm/rubies/jruby-1.5.5, -Djruby.lib=/home/andreas/.rvm/rubies/jruby-1.5.5/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
63
- Thu Nov 25 14:36:51 CET 2010:
64
- Thu Nov 25 14:36:51 CET 2010: create=true
65
- Thu Nov 25 14:36:51 CET 2010: dir=tmp/neo4j/lucene-fulltext
66
- Thu Nov 25 14:36:51 CET 2010: logical_log=tmp/neo4j/nioneo_logical.log
67
- Thu Nov 25 14:36:51 CET 2010: neo_store=tmp/neo4j/neostore
68
- Thu Nov 25 14:36:51 CET 2010: neostore.nodestore.db.mapped_memory=20M
69
- Thu Nov 25 14:36:51 CET 2010: neostore.propertystore.db.arrays.mapped_memory=130M
70
- Thu Nov 25 14:36:51 CET 2010: neostore.propertystore.db.index.keys.mapped_memory=1M
71
- Thu Nov 25 14:36:51 CET 2010: neostore.propertystore.db.index.mapped_memory=1M
72
- Thu Nov 25 14:36:51 CET 2010: neostore.propertystore.db.mapped_memory=90M
73
- Thu Nov 25 14:36:51 CET 2010: neostore.propertystore.db.strings.mapped_memory=130M
74
- Thu Nov 25 14:36:51 CET 2010: neostore.relationshipstore.db.mapped_memory=100M
75
- Thu Nov 25 14:36:51 CET 2010: rebuild_idgenerators_fast=true
76
- Thu Nov 25 14:36:51 CET 2010: store_dir=tmp/neo4j
77
- Thu Nov 25 14:36:51 CET 2010: --- CONFIGURATION END ---
78
- Thu Nov 25 14:36:51 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] loaded ok
79
- Thu Nov 25 14:37:10 CET 2010: Non clean shutdown detected on log [tmp/neo4j/lucene/lucene.log.1]. Recovery started ...
80
- Thu Nov 25 14:37:10 CET 2010: [tmp/neo4j/lucene/lucene.log.1] logVersion=0 with committed tx=1
81
- Thu Nov 25 14:37:10 CET 2010: [tmp/neo4j/lucene/lucene.log.1] entries found=0 lastEntryPos=16
82
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene/lucene.log] sorting 0 xids
83
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene/lucene.log] checkRecoveryComplete 0 xids
84
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene/lucene.log] recovery completed.
85
- Thu Nov 25 14:37:10 CET 2010: Non clean shutdown detected on log [tmp/neo4j/lucene-fulltext/lucene.log.1]. Recovery started ...
86
- Thu Nov 25 14:37:10 CET 2010: [tmp/neo4j/lucene-fulltext/lucene.log.1] logVersion=0 with committed tx=1
87
- Thu Nov 25 14:37:10 CET 2010: [tmp/neo4j/lucene-fulltext/lucene.log.1] entries found=0 lastEntryPos=16
88
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene-fulltext/lucene.log] sorting 0 xids
89
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene-fulltext/lucene.log] checkRecoveryComplete 0 xids
90
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[tmp/neo4j/lucene-fulltext/lucene.log] recovery completed.
91
- Thu Nov 25 14:37:10 CET 2010: Non clean shutdown detected on log [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1]. Recovery started ...
92
- Thu Nov 25 14:37:10 CET 2010: [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] logVersion=0 with committed tx=1
93
- Thu Nov 25 14:37:10 CET 2010: [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] entries found=0 lastEntryPos=16
94
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log] sorting 0 xids
95
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log] checkRecoveryComplete 0 xids
96
- Thu Nov 25 14:37:10 CET 2010: XaResourceManager[/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log] recovery completed.
97
- Thu Nov 25 14:37:10 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] initialized ok
98
- Thu Nov 25 14:37:10 CET 2010: --- CONFIGURATION START ---
99
- Thu Nov 25 14:37:10 CET 2010: Physical mem: 4017MB, Heap size: 483MB
100
- Thu Nov 25 14:37:10 CET 2010: Kernel version: Neo4j - Graph Database Kernel 1.2-1.2.M04
101
- Thu Nov 25 14:37:10 CET 2010: Operating System: Linux; version: 2.6.32-25-generic-pae; arch: i386
102
- Thu Nov 25 14:37:10 CET 2010: VM Name: Java HotSpot(TM) Client VM
103
- Thu Nov 25 14:37:10 CET 2010: VM Vendor: Sun Microsystems Inc.
104
- Thu Nov 25 14:37:10 CET 2010: VM Version: 17.1-b03
105
- Thu Nov 25 14:37:10 CET 2010: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar
106
- Thu Nov 25 14:37:10 CET 2010: Class Path: :
107
- Thu Nov 25 14:37:10 CET 2010: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
108
- Thu Nov 25 14:37:10 CET 2010: Garbage Collector: Copy: [Eden Space, Survivor Space]
109
- Thu Nov 25 14:37:10 CET 2010: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
110
- Thu Nov 25 14:37:10 CET 2010: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djffi.boot.library.path=/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/i386-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/ppc-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar, -Djruby.home=/home/andreas/.rvm/rubies/jruby-1.5.5, -Djruby.lib=/home/andreas/.rvm/rubies/jruby-1.5.5/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
111
- Thu Nov 25 14:37:10 CET 2010:
112
- Thu Nov 25 14:37:10 CET 2010: create=true
113
- Thu Nov 25 14:37:10 CET 2010: dir=tmp/neo4j/lucene-fulltext
114
- Thu Nov 25 14:37:10 CET 2010: logical_log=tmp/neo4j/nioneo_logical.log
115
- Thu Nov 25 14:37:10 CET 2010: neo_store=tmp/neo4j/neostore
116
- Thu Nov 25 14:37:10 CET 2010: neostore.nodestore.db.mapped_memory=20M
117
- Thu Nov 25 14:37:10 CET 2010: neostore.propertystore.db.arrays.mapped_memory=130M
118
- Thu Nov 25 14:37:10 CET 2010: neostore.propertystore.db.index.keys.mapped_memory=1M
119
- Thu Nov 25 14:37:10 CET 2010: neostore.propertystore.db.index.mapped_memory=1M
120
- Thu Nov 25 14:37:10 CET 2010: neostore.propertystore.db.mapped_memory=90M
121
- Thu Nov 25 14:37:10 CET 2010: neostore.propertystore.db.strings.mapped_memory=130M
122
- Thu Nov 25 14:37:10 CET 2010: neostore.relationshipstore.db.mapped_memory=100M
123
- Thu Nov 25 14:37:10 CET 2010: read_only=true
124
- Thu Nov 25 14:37:10 CET 2010: rebuild_idgenerators_fast=true
125
- Thu Nov 25 14:37:10 CET 2010: store_dir=tmp/neo4j
126
- Thu Nov 25 14:37:10 CET 2010: --- CONFIGURATION END ---
127
- Thu Nov 25 14:37:10 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] loaded ok
128
- Thu Nov 25 14:38:03 CET 2010: Closed log tmp/neo4j/nioneo_logical.log
129
- Thu Nov 25 14:38:03 CET 2010: NeoStore closed
130
- Thu Nov 25 14:38:03 CET 2010: Closed log /home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log
131
- Thu Nov 25 14:38:03 CET 2010: Closed log tmp/neo4j/lucene/lucene.log
132
- Thu Nov 25 14:38:03 CET 2010: NeoStore closed
133
- Thu Nov 25 14:38:03 CET 2010: Closed log tmp/neo4j/lucene-fulltext/lucene.log
134
- Thu Nov 25 14:38:03 CET 2010: TM shutting down
135
- Thu Dec 02 10:15:07 CET 2010: Opened [tmp/neo4j/nioneo_logical.log.1] clean empty log, version=0
136
- Thu Dec 02 10:15:07 CET 2010: Opened [tmp/neo4j/lucene/lucene.log.1] clean empty log, version=0
137
- Thu Dec 02 10:15:07 CET 2010: Opened [tmp/neo4j/lucene-fulltext/lucene.log.1] clean empty log, version=0
138
- Thu Dec 02 10:15:07 CET 2010: Opened [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] clean empty log, version=0
139
- Thu Dec 02 10:15:07 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] initialized ok
140
- Thu Dec 02 10:15:07 CET 2010: TM opening log: tmp/neo4j/tm_tx_log.1
141
- Thu Dec 02 10:15:07 CET 2010: --- CONFIGURATION START ---
142
- Thu Dec 02 10:15:07 CET 2010: Physical mem: 4017MB, Heap size: 483MB
143
- Thu Dec 02 10:15:07 CET 2010: Kernel version: Neo4j - Graph Database Kernel 1.2-1.2.M04
144
- Thu Dec 02 10:15:07 CET 2010: Operating System: Linux; version: 2.6.32-26-generic-pae; arch: i386
145
- Thu Dec 02 10:15:07 CET 2010: VM Name: Java HotSpot(TM) Client VM
146
- Thu Dec 02 10:15:07 CET 2010: VM Vendor: Sun Microsystems Inc.
147
- Thu Dec 02 10:15:07 CET 2010: VM Version: 17.1-b03
148
- Thu Dec 02 10:15:07 CET 2010: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar
149
- Thu Dec 02 10:15:07 CET 2010: Class Path: :
150
- Thu Dec 02 10:15:07 CET 2010: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
151
- Thu Dec 02 10:15:07 CET 2010: Garbage Collector: Copy: [Eden Space, Survivor Space]
152
- Thu Dec 02 10:15:07 CET 2010: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
153
- Thu Dec 02 10:15:07 CET 2010: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djffi.boot.library.path=/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/i386-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/ppc-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar, -Djruby.home=/home/andreas/.rvm/rubies/jruby-1.5.5, -Djruby.lib=/home/andreas/.rvm/rubies/jruby-1.5.5/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
154
- Thu Dec 02 10:15:07 CET 2010:
155
- Thu Dec 02 10:15:07 CET 2010: create=true
156
- Thu Dec 02 10:15:07 CET 2010: dir=tmp/neo4j/lucene-fulltext
157
- Thu Dec 02 10:15:07 CET 2010: logical_log=tmp/neo4j/nioneo_logical.log
158
- Thu Dec 02 10:15:07 CET 2010: neo_store=tmp/neo4j/neostore
159
- Thu Dec 02 10:15:07 CET 2010: neostore.nodestore.db.mapped_memory=20M
160
- Thu Dec 02 10:15:07 CET 2010: neostore.propertystore.db.arrays.mapped_memory=130M
161
- Thu Dec 02 10:15:07 CET 2010: neostore.propertystore.db.index.keys.mapped_memory=1M
162
- Thu Dec 02 10:15:07 CET 2010: neostore.propertystore.db.index.mapped_memory=1M
163
- Thu Dec 02 10:15:07 CET 2010: neostore.propertystore.db.mapped_memory=90M
164
- Thu Dec 02 10:15:07 CET 2010: neostore.propertystore.db.strings.mapped_memory=130M
165
- Thu Dec 02 10:15:07 CET 2010: neostore.relationshipstore.db.mapped_memory=100M
166
- Thu Dec 02 10:15:07 CET 2010: rebuild_idgenerators_fast=true
167
- Thu Dec 02 10:15:07 CET 2010: store_dir=tmp/neo4j
168
- Thu Dec 02 10:15:07 CET 2010: --- CONFIGURATION END ---
169
- Thu Dec 02 10:15:07 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] loaded ok
170
- Thu Dec 02 11:54:16 CET 2010: Closed log tmp/neo4j/nioneo_logical.log
171
- Thu Dec 02 11:54:16 CET 2010: NeoStore closed
172
- Thu Dec 02 11:54:16 CET 2010: Closed log /home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log
173
- Thu Dec 02 11:54:16 CET 2010: Closed log tmp/neo4j/lucene/lucene.log
174
- Thu Dec 02 11:54:16 CET 2010: NeoStore closed
175
- Thu Dec 02 11:54:16 CET 2010: Closed log tmp/neo4j/lucene-fulltext/lucene.log
176
- Thu Dec 02 11:54:16 CET 2010: TM shutting down
1
+ Wed Dec 15 10:16:02 CET 2010: Creating new db @ tmp/neo4j/neostore
2
+ Wed Dec 15 10:16:02 CET 2010: Opened [tmp/neo4j/nioneo_logical.log.1] clean empty log, version=0
3
+ Wed Dec 15 10:16:02 CET 2010: Opened [tmp/neo4j/lucene/lucene.log.1] clean empty log, version=0
4
+ Wed Dec 15 10:16:02 CET 2010: Opened [tmp/neo4j/lucene-fulltext/lucene.log.1] clean empty log, version=0
5
+ Wed Dec 15 10:16:02 CET 2010: Opened [/home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log.1] clean empty log, version=0
6
+ Wed Dec 15 10:16:02 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] initialized ok
7
+ Wed Dec 15 10:16:02 CET 2010: TM new log: tm_tx_log.1
8
+ Wed Dec 15 10:16:02 CET 2010: --- CONFIGURATION START ---
9
+ Wed Dec 15 10:16:02 CET 2010: Physical mem: 4017MB, Heap size: 483MB
10
+ Wed Dec 15 10:16:02 CET 2010: Kernel version: Neo4j - Graph Database Kernel 1.2-1.2.M04
11
+ Wed Dec 15 10:16:02 CET 2010: Operating System: Linux; version: 2.6.32-26-generic-pae; arch: i386
12
+ Wed Dec 15 10:16:02 CET 2010: VM Name: Java HotSpot(TM) Client VM
13
+ Wed Dec 15 10:16:02 CET 2010: VM Vendor: Sun Microsystems Inc.
14
+ Wed Dec 15 10:16:02 CET 2010: VM Version: 17.1-b03
15
+ Wed Dec 15 10:16:02 CET 2010: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar
16
+ Wed Dec 15 10:16:02 CET 2010: Class Path: :
17
+ Wed Dec 15 10:16:02 CET 2010: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
18
+ Wed Dec 15 10:16:02 CET 2010: Garbage Collector: Copy: [Eden Space, Survivor Space]
19
+ Wed Dec 15 10:16:02 CET 2010: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
20
+ Wed Dec 15 10:16:02 CET 2010: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djffi.boot.library.path=/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/i386-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/ppc-Linux:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/andreas/.rvm/rubies/jruby-1.5.5/lib/jruby.jar, -Djruby.home=/home/andreas/.rvm/rubies/jruby-1.5.5, -Djruby.lib=/home/andreas/.rvm/rubies/jruby-1.5.5/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
21
+ Wed Dec 15 10:16:02 CET 2010:
22
+ Wed Dec 15 10:16:02 CET 2010: create=true
23
+ Wed Dec 15 10:16:02 CET 2010: dir=tmp/neo4j/lucene-fulltext
24
+ Wed Dec 15 10:16:02 CET 2010: logical_log=tmp/neo4j/nioneo_logical.log
25
+ Wed Dec 15 10:16:02 CET 2010: neo_store=tmp/neo4j/neostore
26
+ Wed Dec 15 10:16:02 CET 2010: neostore.nodestore.db.mapped_memory=20M
27
+ Wed Dec 15 10:16:02 CET 2010: neostore.propertystore.db.arrays.mapped_memory=130M
28
+ Wed Dec 15 10:16:02 CET 2010: neostore.propertystore.db.index.keys.mapped_memory=1M
29
+ Wed Dec 15 10:16:02 CET 2010: neostore.propertystore.db.index.mapped_memory=1M
30
+ Wed Dec 15 10:16:02 CET 2010: neostore.propertystore.db.mapped_memory=90M
31
+ Wed Dec 15 10:16:02 CET 2010: neostore.propertystore.db.strings.mapped_memory=130M
32
+ Wed Dec 15 10:16:02 CET 2010: neostore.relationshipstore.db.mapped_memory=100M
33
+ Wed Dec 15 10:16:02 CET 2010: rebuild_idgenerators_fast=true
34
+ Wed Dec 15 10:16:02 CET 2010: store_dir=tmp/neo4j
35
+ Wed Dec 15 10:16:02 CET 2010: --- CONFIGURATION END ---
36
+ Wed Dec 15 10:16:02 CET 2010: Extension org.neo4j.graphdb.index.IndexProvider[lucene] loaded ok
37
+ Wed Dec 15 10:16:43 CET 2010: Closed log tmp/neo4j/nioneo_logical.log
38
+ Wed Dec 15 10:16:43 CET 2010: NeoStore closed
39
+ Wed Dec 15 10:16:43 CET 2010: Closed log /home/andreas/projects/neo4j/lib/tmp/neo4j/index/lucene.log
40
+ Wed Dec 15 10:16:43 CET 2010: Closed log tmp/neo4j/lucene/lucene.log
41
+ Wed Dec 15 10:16:43 CET 2010: NeoStore closed
42
+ Wed Dec 15 10:16:43 CET 2010: Closed log tmp/neo4j/lucene-fulltext/lucene.log
43
+ Wed Dec 15 10:16:43 CET 2010: TM shutting down