neo4j-core 2.2.0.rc1-java → 2.2.1-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 +1 -15
- data/lib/db/index/lucene-store.db +0 -0
- data/lib/db/index/lucene.log.v1 +0 -0
- data/lib/db/messages.log +321 -0
- data/lib/db/neostore +0 -0
- data/lib/db/neostore.nodestore.db +0 -0
- data/lib/db/neostore.nodestore.db.id +0 -0
- data/lib/db/neostore.propertystore.db +0 -0
- data/lib/db/neostore.propertystore.db.id +0 -0
- data/lib/db/neostore.propertystore.db.index +0 -0
- data/lib/db/neostore.propertystore.db.index.id +0 -0
- data/lib/db/neostore.propertystore.db.index.keys +0 -0
- data/lib/db/neostore.propertystore.db.index.keys.id +0 -0
- data/lib/db/nioneo_logical.log.v1 +0 -0
- data/lib/db/tm_tx_log.1 +0 -0
- data/lib/neo4j-core.rb +2 -2
- data/lib/neo4j-core/database.rb +4 -0
- data/lib/neo4j-core/property/property.rb +11 -0
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-core/version.rb~ +5 -0
- data/lib/neo4j/config.rb +2 -2
- data/lib/neo4j/config.rb~ +136 -0
- data/lib/neo4j/node.rb +0 -2
- data/lib/neo4j/relationship.rb +0 -2
- data/neo4j-core.gemspec +1 -1
- metadata +84 -150
- data/lib/neo4j-core/equal/equal.rb +0 -23
data/README.rdoc
CHANGED
|
@@ -8,7 +8,7 @@ The Neo4j module is public and the Neo4j::Core(::*) are internal modules.
|
|
|
8
8
|
== Documentation
|
|
9
9
|
|
|
10
10
|
* {YARD}[http://rdoc.info/github/andreasronge/neo4j-core/file/README.rdoc]
|
|
11
|
-
* {
|
|
11
|
+
* {neo4j-core Documentation}[http://github.com/andreasronge/neo4j/wiki/Neo4j::core-introduction]
|
|
12
12
|
|
|
13
13
|
== The public API
|
|
14
14
|
|
|
@@ -22,20 +22,6 @@ The Neo4j module is public and the Neo4j::Core(::*) are internal modules.
|
|
|
22
22
|
|
|
23
23
|
{Neo4j::Algo} Included algorithms, like shortest path
|
|
24
24
|
|
|
25
|
-
== Cypher
|
|
26
|
-
|
|
27
|
-
The neo4j-core gem depends on the neo4j-cypher gem, see http://github.com/andreasronge/neo4j-cypher
|
|
28
|
-
|
|
29
|
-
Example:
|
|
30
|
-
Neo4j.query { node(3) }
|
|
31
|
-
|
|
32
|
-
Example with parameters:
|
|
33
|
-
Neo4j.query(Neo4j.ref_node} do |ref|
|
|
34
|
-
ref <=> :x
|
|
35
|
-
:x
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
|
|
39
25
|
=== License
|
|
40
26
|
* Neo4j.rb - MIT, see the LICENSE file http://github.com/andreasronge/neo4j-core/tree/master/LICENSE.
|
|
41
27
|
* Lucene - Apache, see http://lucene.apache.org/java/docs/features.html
|
|
Binary file
|
|
Binary file
|
data/lib/db/messages.log
CHANGED
|
@@ -283,3 +283,324 @@
|
|
|
283
283
|
2012-08-21 13:44:00.613+0000: NeoStore closed
|
|
284
284
|
2012-08-21 13:44:00.613+0000: --- SHUTDOWN diagnostics START ---
|
|
285
285
|
2012-08-21 13:44:00.613+0000: --- SHUTDOWN diagnostics END ---
|
|
286
|
+
2012-12-08 21:19:11.832+0000: WARNING! Deprecated configuration options used. See manual for details
|
|
287
|
+
2012-12-08 21:19:11.834+0000: enable_online_backup has been replaced with online_backup_enabled and online_backup_port
|
|
288
|
+
2012-12-08 21:19:11.834+0000: neo4j.ext.udc.disable has been replaced with neo4j.ext.udc.enabled
|
|
289
|
+
2012-12-08 21:19:11.834+0000: cannot configure writers and searchers individually since they go together
|
|
290
|
+
2012-12-08 21:19:11.891+0000: --- INITIALIZED diagnostics START ---
|
|
291
|
+
2012-12-08 21:19:11.892+0000: Neo4j Kernel properties:
|
|
292
|
+
read_only=false
|
|
293
|
+
forced_kernel_id=
|
|
294
|
+
neo4j.ext.udc.host=udc.neo4j.org
|
|
295
|
+
logical_log=nioneo_logical.log
|
|
296
|
+
min_node_cache_size=0
|
|
297
|
+
intercept_committing_transactions=false
|
|
298
|
+
node_auto_indexing=false
|
|
299
|
+
remote_shell_name=shell
|
|
300
|
+
cache_type=soft
|
|
301
|
+
intercept_deserialized_transactions=false
|
|
302
|
+
ha.db=false
|
|
303
|
+
use_adaptive_cache=true
|
|
304
|
+
lucene_searcher_cache_size=2147483647
|
|
305
|
+
neo4j.ext.udc.interval=86400000
|
|
306
|
+
use_memory_mapped_buffers=true
|
|
307
|
+
timestamps=true
|
|
308
|
+
ha.coordinators=localhost:2181,localhost:2182,localhost:2183
|
|
309
|
+
rebuild_idgenerators_fast=true
|
|
310
|
+
neostore.propertystore.db.index.keys.mapped_memory=1M
|
|
311
|
+
max_node_cache_size=1500
|
|
312
|
+
neostore.propertystore.db.arrays.mapped_memory=130M
|
|
313
|
+
neostore.propertystore.db.strings.mapped_memory=130M
|
|
314
|
+
log_mapped_memory_stats_filename=mapped_memory_stats.log
|
|
315
|
+
log_mapped_memory_stats_interval=1000000
|
|
316
|
+
gcr_cache_min_log_interval=60s
|
|
317
|
+
relationship_auto_indexing=false
|
|
318
|
+
relationship_grab_size=100
|
|
319
|
+
remote_shell_read_only=false
|
|
320
|
+
storage_path=db
|
|
321
|
+
node_cache_array_fraction=1.0
|
|
322
|
+
allow_store_upgrade=false
|
|
323
|
+
execution_guard_enabled=false
|
|
324
|
+
relationship_cache_array_fraction=1.0
|
|
325
|
+
migration_thread=false
|
|
326
|
+
remote_logging_host=127.0.0.1
|
|
327
|
+
store_dir=/Users/andreasronge/projects/neo4j-core/lib/db
|
|
328
|
+
online_backup_enabled=false
|
|
329
|
+
remote_logging_port=4560
|
|
330
|
+
enable_rules=true
|
|
331
|
+
gc_monitor_threshold=200ms
|
|
332
|
+
load_kernel_extensions=true
|
|
333
|
+
array_block_size=120
|
|
334
|
+
neostore.relationshipstore.db.mapped_memory=50M
|
|
335
|
+
keep_logical_logs=true
|
|
336
|
+
dump_configuration=false
|
|
337
|
+
gc_monitor_wait_time=100ms
|
|
338
|
+
neostore.nodestore.db.mapped_memory=25M
|
|
339
|
+
neo4j.ext.udc.first_delay=600000
|
|
340
|
+
remote_shell_enabled=true
|
|
341
|
+
min_relationship_cache_size=0
|
|
342
|
+
max_relationship_cache_size=3500
|
|
343
|
+
neo4j.ext.udc.reg=unreg
|
|
344
|
+
remote_shell_port=9332
|
|
345
|
+
adaptive_cache_heap_ratio=0.77
|
|
346
|
+
identity_map=true
|
|
347
|
+
adaptive_cache_manager_decrease_ratio=1.15
|
|
348
|
+
log_mapped_memory_stats=false
|
|
349
|
+
ha.server_id=2
|
|
350
|
+
mapped_memory_page_size=1M
|
|
351
|
+
neo_store=neostore
|
|
352
|
+
adaptive_cache_worker_sleep_time=3000
|
|
353
|
+
logging.threshold_for_rotation=104857600
|
|
354
|
+
neostore.propertystore.db.index.mapped_memory=1M
|
|
355
|
+
adaptive_cache_manager_increase_ratio=1.1
|
|
356
|
+
backup_slave=false
|
|
357
|
+
neostore.propertystore.db.mapped_memory=90M
|
|
358
|
+
string_block_size=120
|
|
359
|
+
grab_file_lock=true
|
|
360
|
+
remote_logging_enabled=false
|
|
361
|
+
ha.server=localhost:6002
|
|
362
|
+
neo4j.ext.udc.enabled=true
|
|
363
|
+
all_stores_total_mapped_memory_size=500M
|
|
364
|
+
online_backup_port=6362
|
|
365
|
+
2012-12-08 21:19:11.896+0000: Diagnostics providers:
|
|
366
|
+
org.neo4j.kernel.configuration.Config
|
|
367
|
+
org.neo4j.kernel.info.DiagnosticsManager
|
|
368
|
+
SYSTEM_MEMORY
|
|
369
|
+
JAVA_MEMORY
|
|
370
|
+
OPERATING_SYSTEM
|
|
371
|
+
JAVA_VIRTUAL_MACHINE
|
|
372
|
+
CLASSPATH
|
|
373
|
+
LIBRARY_PATH
|
|
374
|
+
SYSTEM_PROPERTIES
|
|
375
|
+
NETWORK
|
|
376
|
+
2012-12-08 21:19:11.898+0000: System memory information:
|
|
377
|
+
Total Physical memory: 6.00 GB
|
|
378
|
+
Free Physical memory: 128.00 MB
|
|
379
|
+
Committed virtual memory: 64.00 MB
|
|
380
|
+
Total swap space: 0.00 B
|
|
381
|
+
Free swap space: 0.00 B
|
|
382
|
+
2012-12-08 21:19:11.901+0000: JVM memory information:
|
|
383
|
+
Free memory: 43.73 MB
|
|
384
|
+
Total memory: 66.06 MB
|
|
385
|
+
Max memory: 444.50 MB
|
|
386
|
+
Garbage Collector: PS Scavenge: [PS Eden Space, PS Survivor Space]
|
|
387
|
+
Garbage Collector: PS MarkSweep: [PS Eden Space, PS Survivor Space, PS Old Gen, PS Perm Gen]
|
|
388
|
+
Memory Pool: Code Cache (Non-heap memory): committed=2.44 MB, used=2.00 MB, max=48.00 MB, threshold=0.00 B
|
|
389
|
+
Memory Pool: PS Eden Space (Heap memory): committed=16.38 MB, used=9.81 MB, max=156.63 MB, threshold=?
|
|
390
|
+
Memory Pool: PS Survivor Space (Heap memory): committed=5.06 MB, used=3.97 MB, max=5.06 MB, threshold=?
|
|
391
|
+
Memory Pool: PS Old Gen (Heap memory): committed=44.63 MB, used=8.55 MB, max=333.38 MB, threshold=0.00 B
|
|
392
|
+
Memory Pool: PS Perm Gen (Non-heap memory): committed=23.38 MB, used=23.27 MB, max=82.00 MB, threshold=0.00 B
|
|
393
|
+
2012-12-08 21:19:11.905+0000: Operating system information:
|
|
394
|
+
Operating System: Mac OS X; version: 10.8.2; arch: x86_64; cpus: 8
|
|
395
|
+
Max number of file descriptors: 10240
|
|
396
|
+
Number of open file descriptors: 100
|
|
397
|
+
Process id: 2491@Andreass-MacBook-Pro-2.local
|
|
398
|
+
Byte order: LITTLE_ENDIAN
|
|
399
|
+
Local timezone: Europe/Stockholm
|
|
400
|
+
2012-12-08 21:19:12.108+0000: JVM information:
|
|
401
|
+
VM Name: Java HotSpot(TM) 64-Bit Server VM
|
|
402
|
+
VM Vendor: Oracle Corporation
|
|
403
|
+
VM Version: 23.1-b03
|
|
404
|
+
JIT compiler: HotSpot 64-Bit Tiered Compilers
|
|
405
|
+
VM Arguments: [-Djdk.home=, -Djruby.home=/Users/andreasronge/.rvm/rubies/jruby-1.6.7, -Djruby.script=jruby, -Djruby.shell=/bin/sh, -Djffi.boot.library.path=/Users/andreasronge/.rvm/rubies/jruby-1.6.7/lib/native/Darwin, -Xmx500m, -Xss2048k, -Djruby.memory.max=500m, -Djruby.stack.max=2048k, -Xbootclasspath/a:/Users/andreasronge/.rvm/rubies/jruby-1.6.7/lib/jruby.jar, -Dfile.encoding=UTF-8]
|
|
406
|
+
2012-12-08 21:19:12.109+0000: Java classpath:
|
|
407
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar
|
|
408
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/localedata.jar
|
|
409
|
+
[loader.2] file:/System/Library/Java/Extensions/dns_sd.jar
|
|
410
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-jmx-1.9.M01.jar
|
|
411
|
+
[loader.2] file:/System/Library/Java/Extensions/MRJToolkit.jar
|
|
412
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/scala-library-2.9.1-1.jar
|
|
413
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jce.jar
|
|
414
|
+
[classpath + loader.1] file:/Users/andreasronge/projects/neo4j-core/lib/
|
|
415
|
+
[loader.2] file:/System/Library/Java/Extensions/vecmath.jar
|
|
416
|
+
[loader.2] file:/System/Library/Java/Extensions/libmlib_jai.jnilib
|
|
417
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-udc-1.9.M01.jar
|
|
418
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-cypher-1.9.M01.jar
|
|
419
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/dnsns.jar
|
|
420
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/zipfs.jar
|
|
421
|
+
[loader.2] file:/System/Library/Java/Extensions/libJ3D.jnilib
|
|
422
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jfr.jar
|
|
423
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/sunec.jar
|
|
424
|
+
[loader.2] file:/System/Library/Java/Extensions/mlibwrapper_jai.jar
|
|
425
|
+
[loader.2] file:/System/Library/Java/Extensions/QTJava.zip
|
|
426
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/JObjC.jar
|
|
427
|
+
[loader.2] file:/System/Library/Java/Extensions/libAppleScriptEngine.jnilib
|
|
428
|
+
[loader.2] file:/System/Library/Java/Extensions/libJ3DAudio.jnilib
|
|
429
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/sunrsasign.jar
|
|
430
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/classes
|
|
431
|
+
[loader.2] file:/System/Library/Java/Extensions/j3daudio.jar
|
|
432
|
+
[loader.2] file:/System/Library/Java/Extensions/libJ3DUtils.jnilib
|
|
433
|
+
[loader.2] file:/System/Library/Java/Extensions/libQTJNative.jnilib
|
|
434
|
+
[loader.2] file:/System/Library/Java/Extensions/j3dcore.jar
|
|
435
|
+
[loader.2] file:/usr/lib/java/libjdns_sd.jnilib
|
|
436
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-lucene-index-1.9.M01.jar
|
|
437
|
+
[loader.2] file:/System/Library/Java/Extensions/j3dutils.jar
|
|
438
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/org.apache.servicemix.bundles.jline-0.9.94_1.jar
|
|
439
|
+
[loader.2] file:/System/Library/Java/Extensions/jai_core.jar
|
|
440
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/server-api-1.9.M01.jar
|
|
441
|
+
[loader.2] file:/System/Library/Java/Extensions/jai_codec.jar
|
|
442
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/charsets.jar
|
|
443
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-graph-algo-1.9.M01.jar
|
|
444
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/geronimo-jta_1.1_spec-1.1.1.jar
|
|
445
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar
|
|
446
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-kernel-1.9.M01.jar
|
|
447
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/concurrentlinkedhashmap-lru-1.3.1.jar
|
|
448
|
+
[loader.2] file:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar
|
|
449
|
+
[loader.2] file:/System/Library/Java/Extensions/AppleScriptEngine.jar
|
|
450
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-shell-1.9.M01.jar
|
|
451
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/neo4j-graph-matching-1.9.M01.jar
|
|
452
|
+
[bootstrap] /Users/andreasronge/.rvm/rubies/jruby-1.6.7/lib/jruby.jar
|
|
453
|
+
[loader.0] file:/Users/andreasronge/.rvm/gems/jruby-1.6.7/gems/neo4j-community-1.9.M01-java/lib/neo4j-community/jars/lucene-core-3.5.0.jar
|
|
454
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jsse.jar
|
|
455
|
+
[bootstrap] /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/resources.jar
|
|
456
|
+
2012-12-08 21:19:12.112+0000: Library path:
|
|
457
|
+
/Users/andreasronge/Library/Java/Extensions
|
|
458
|
+
/Library/Java/Extensions
|
|
459
|
+
/Network/Library/Java/Extensions
|
|
460
|
+
/System/Library/Java/Extensions
|
|
461
|
+
/usr/lib/java
|
|
462
|
+
/Users/andreasronge/projects/neo4j-core/lib
|
|
463
|
+
2012-12-08 21:19:12.112+0000: System.properties:
|
|
464
|
+
jruby.home = /Users/andreasronge/.rvm/rubies/jruby-1.6.7
|
|
465
|
+
sun.boot.library.path = /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib
|
|
466
|
+
user.country.format = SE
|
|
467
|
+
gopherProxySet = false
|
|
468
|
+
path.separator = :
|
|
469
|
+
file.encoding.pkg = sun.io
|
|
470
|
+
user.country = US
|
|
471
|
+
sun.java.launcher = SUN_STANDARD
|
|
472
|
+
sun.os.patch.level = unknown
|
|
473
|
+
user.dir = /Users/andreasronge/projects/neo4j-core/lib
|
|
474
|
+
neo4j.ext.udc.source = neo4rb
|
|
475
|
+
jdk.home =
|
|
476
|
+
sun.jnu.encoding = UTF-8
|
|
477
|
+
jruby.memory.max = 500m
|
|
478
|
+
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
|
|
479
|
+
http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
|
|
480
|
+
jffi.boot.library.path = /Users/andreasronge/.rvm/rubies/jruby-1.6.7/lib/native/Darwin
|
|
481
|
+
user.home = /Users/andreasronge
|
|
482
|
+
user.timezone = Europe/Stockholm
|
|
483
|
+
file.encoding = UTF-8
|
|
484
|
+
jruby.stack.max = 2048k
|
|
485
|
+
jruby.script = jruby
|
|
486
|
+
user.name = andreasronge
|
|
487
|
+
jruby.shell = /bin/sh
|
|
488
|
+
sun.java.command = org/jruby/Main /Users/andreasronge/.rvm/rubies/jruby-1.6.7/bin/irb
|
|
489
|
+
sun.arch.data.model = 64
|
|
490
|
+
user.language = en
|
|
491
|
+
awt.toolkit = sun.lwawt.macosx.LWCToolkit
|
|
492
|
+
file.separator = /
|
|
493
|
+
sun.io.unicode.encoding = UnicodeBig
|
|
494
|
+
sun.cpu.endian = little
|
|
495
|
+
socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
|
|
496
|
+
ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
|
|
497
|
+
sun.cpu.isalist =
|
|
498
|
+
2012-12-08 21:19:12.113+0000: Network information:
|
|
499
|
+
Interface en0:
|
|
500
|
+
address: fe80:0:0:0:baf6:b1ff:fe18:1b39%4
|
|
501
|
+
address: 192.168.1.14
|
|
502
|
+
Interface lo0:
|
|
503
|
+
address: 0:0:0:0:0:0:0:1
|
|
504
|
+
address: fe80:0:0:0:0:0:0:1%1
|
|
505
|
+
address: 127.0.0.1
|
|
506
|
+
2012-12-08 21:19:12.116+0000: --- INITIALIZED diagnostics END ---
|
|
507
|
+
2012-12-08 21:19:12.203+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshiptypestore.db.names] brickCount=0 brickSize=0b mappedMem=0b (storeSize=38b)
|
|
508
|
+
2012-12-08 21:19:12.207+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshiptypestore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=0b)
|
|
509
|
+
2012-12-08 21:19:12.208+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.strings] brickCount=0 brickSize=136192b mappedMem=136314880b (storeSize=128b)
|
|
510
|
+
2012-12-08 21:19:12.209+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.index.keys] brickCount=0 brickSize=1026b mappedMem=1048576b (storeSize=38b)
|
|
511
|
+
2012-12-08 21:19:12.212+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.index] brickCount=0 brickSize=10485b mappedMem=1048576b (storeSize=0b)
|
|
512
|
+
2012-12-08 21:19:12.214+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.arrays] brickCount=0 brickSize=136192b mappedMem=136314880b (storeSize=128b)
|
|
513
|
+
2012-12-08 21:19:12.217+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db] brickCount=0 brickSize=943697b mappedMem=94371840b (storeSize=0b)
|
|
514
|
+
2012-12-08 21:19:12.220+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshipstore.db] brickCount=0 brickSize=524271b mappedMem=52428800b (storeSize=0b)
|
|
515
|
+
2012-12-08 21:19:12.223+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore.nodestore.db] brickCount=0 brickSize=26208b mappedMem=26214400b (storeSize=9b)
|
|
516
|
+
2012-12-08 21:19:12.226+0000: [/Users/andreasronge/projects/neo4j-core/lib/db/neostore] brickCount=0 brickSize=0b mappedMem=0b (storeSize=54b)
|
|
517
|
+
2012-12-08 21:19:12.246+0000: Opened logical log [/Users/andreasronge/projects/neo4j-core/lib/db/nioneo_logical.log.1] version=1, lastTxId=1 (clean)
|
|
518
|
+
2012-12-08 21:19:12.256+0000: TM opening log: /Users/andreasronge/projects/neo4j-core/lib/db/tm_tx_log.1
|
|
519
|
+
2012-12-08 21:19:12.464+0000: Opened logical log [/Users/andreasronge/projects/neo4j-core/lib/db/index/lucene.log.1] version=1, lastTxId=1 (clean)
|
|
520
|
+
2012-12-08 21:19:12.468+0000: --- STARTED diagnostics for KernelDiagnostics:Versions START ---
|
|
521
|
+
2012-12-08 21:19:12.468+0000: Graph Database: org.neo4j.kernel.EmbeddedGraphDatabase StoreId[time:1345556613946, id:2509386930507999424, store version: 13561656364791302]
|
|
522
|
+
2012-12-08 21:19:12.468+0000: Kernel version: Neo4j - Graph Database Kernel 1.9.M01
|
|
523
|
+
2012-12-08 21:19:12.468+0000: Neo4j component versions:
|
|
524
|
+
2012-12-08 21:19:12.469+0000: Neo4j - Graph Database Kernel 1.9.M01
|
|
525
|
+
2012-12-08 21:19:12.469+0000: --- STARTED diagnostics for KernelDiagnostics:Versions END ---
|
|
526
|
+
2012-12-08 21:19:12.471+0000: --- STARTED diagnostics for NEO_STORE_VERSIONS START ---
|
|
527
|
+
2012-12-08 21:19:12.472+0000: Store versions:
|
|
528
|
+
Store versions:
|
|
529
|
+
NeoStore v0.A.0
|
|
530
|
+
NodeStore v0.A.0
|
|
531
|
+
RelationshipStore v0.A.0
|
|
532
|
+
RelationshipTypeStore v0.A.0
|
|
533
|
+
PropertyStore v0.A.0
|
|
534
|
+
PropertyIndexStore v0.A.0
|
|
535
|
+
StringPropertyStore v0.A.0
|
|
536
|
+
ArrayPropertyStore v0.A.0
|
|
537
|
+
2012-12-08 21:19:12.472+0000: --- STARTED diagnostics for NEO_STORE_VERSIONS END ---
|
|
538
|
+
2012-12-08 21:19:12.472+0000: --- STARTED diagnostics for NEO_STORE_ID_USAGE START ---
|
|
539
|
+
2012-12-08 21:19:12.472+0000: Id usage:
|
|
540
|
+
Id usage:
|
|
541
|
+
NodeStore: used=1 high=0
|
|
542
|
+
RelationshipStore: used=0 high=-1
|
|
543
|
+
RelationshipTypeStore: used=0 high=-1
|
|
544
|
+
PropertyStore: used=0 high=-1
|
|
545
|
+
PropertyIndexStore: used=0 high=-1
|
|
546
|
+
StringPropertyStore: used=1 high=0
|
|
547
|
+
ArrayPropertyStore: used=1 high=0
|
|
548
|
+
2012-12-08 21:19:12.472+0000: --- STARTED diagnostics for NEO_STORE_ID_USAGE END ---
|
|
549
|
+
2012-12-08 21:19:12.473+0000: --- STARTED diagnostics for PERSISTENCE_WINDOW_POOL_STATS START ---
|
|
550
|
+
2012-12-08 21:19:12.473+0000: --- STARTED diagnostics for PERSISTENCE_WINDOW_POOL_STATS END ---
|
|
551
|
+
2012-12-08 21:19:12.473+0000: --- STARTED diagnostics for KernelDiagnostics:StoreFiles START ---
|
|
552
|
+
2012-12-08 21:19:12.473+0000: Disk space on partition (Total / Free / Free %): 250140434432 / 168834277376 / 32
|
|
553
|
+
Storage files: (filename : modification date - size)
|
|
554
|
+
active_tx_log: 2012-08-21T15:43:34+0200 - 11.00 B
|
|
555
|
+
index:
|
|
556
|
+
lucene-store.db: 2012-08-21T15:44:00+0200 - 40.00 B
|
|
557
|
+
lucene.log.1: 2012-12-08T22:19:12+0100 - 16.00 B
|
|
558
|
+
lucene.log.active: 2012-12-08T22:19:12+0100 - 4.00 B
|
|
559
|
+
lucene.log.v0: 2012-08-21T15:44:00+0200 - 16.00 B
|
|
560
|
+
- Total: 2012-12-08T22:19:12+0100 - 76.00 B
|
|
561
|
+
lock: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
562
|
+
messages.log: 2012-12-08T22:19:12+0100 - 31.39 kB
|
|
563
|
+
neostore: 2012-12-08T22:19:12+0100 - 54.00 B
|
|
564
|
+
neostore.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
565
|
+
neostore.nodestore.db: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
566
|
+
neostore.nodestore.db.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
567
|
+
neostore.propertystore.db: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
568
|
+
neostore.propertystore.db.arrays: 2012-12-08T22:19:12+0100 - 128.00 B
|
|
569
|
+
neostore.propertystore.db.arrays.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
570
|
+
neostore.propertystore.db.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
571
|
+
neostore.propertystore.db.index: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
572
|
+
neostore.propertystore.db.index.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
573
|
+
neostore.propertystore.db.index.keys: 2012-12-08T22:19:12+0100 - 38.00 B
|
|
574
|
+
neostore.propertystore.db.index.keys.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
575
|
+
neostore.propertystore.db.strings: 2012-12-08T22:19:12+0100 - 128.00 B
|
|
576
|
+
neostore.propertystore.db.strings.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
577
|
+
neostore.relationshipstore.db: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
578
|
+
neostore.relationshipstore.db.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
579
|
+
neostore.relationshiptypestore.db: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
580
|
+
neostore.relationshiptypestore.db.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
581
|
+
neostore.relationshiptypestore.db.names: 2012-12-08T22:19:12+0100 - 38.00 B
|
|
582
|
+
neostore.relationshiptypestore.db.names.id: 2012-12-08T22:19:12+0100 - 9.00 B
|
|
583
|
+
nioneo_logical.log.1: 2012-12-08T22:19:12+0100 - 16.00 B
|
|
584
|
+
nioneo_logical.log.active: 2012-12-08T22:19:12+0100 - 4.00 B
|
|
585
|
+
nioneo_logical.log.v0: 2012-08-21T15:44:00+0200 - 16.00 B
|
|
586
|
+
tm_tx_log.1: 2012-12-08T22:19:12+0100 - 0.00 B
|
|
587
|
+
2012-12-08 21:19:12.479+0000: --- STARTED diagnostics for KernelDiagnostics:StoreFiles END ---
|
|
588
|
+
2012-12-08 21:19:12.481+0000: Started - database is now available
|
|
589
|
+
2012-12-08 21:19:12.482+0000: GC Monitor started.
|
|
590
|
+
2012-12-08 21:23:24.665+0000: Stopping - database is now unavailable
|
|
591
|
+
2012-12-08 21:23:24.670+0000: Closed log /Users/andreasronge/projects/neo4j-core/lib/db/index/lucene.log
|
|
592
|
+
2012-12-08 21:23:24.673+0000: TM shutting down
|
|
593
|
+
2012-12-08 21:23:24.674+0000: Closed log /Users/andreasronge/projects/neo4j-core/lib/db/nioneo_logical.log
|
|
594
|
+
2012-12-08 21:23:24.674+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshiptypestore.db.names hit=0 miss=0 switches=0 ooe=0
|
|
595
|
+
2012-12-08 21:23:24.675+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshiptypestore.db hit=0 miss=0 switches=0 ooe=0
|
|
596
|
+
2012-12-08 21:23:24.676+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.strings hit=0 miss=0 switches=0 ooe=0
|
|
597
|
+
2012-12-08 21:23:24.677+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.index.keys hit=1 miss=0 switches=0 ooe=0
|
|
598
|
+
2012-12-08 21:23:24.677+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.index hit=1 miss=0 switches=0 ooe=0
|
|
599
|
+
2012-12-08 21:23:24.678+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db.arrays hit=0 miss=0 switches=0 ooe=0
|
|
600
|
+
2012-12-08 21:23:24.679+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.propertystore.db hit=1 miss=0 switches=0 ooe=0
|
|
601
|
+
2012-12-08 21:23:24.680+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.relationshipstore.db hit=0 miss=0 switches=0 ooe=0
|
|
602
|
+
2012-12-08 21:23:24.680+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore.nodestore.db hit=1 miss=0 switches=0 ooe=0
|
|
603
|
+
2012-12-08 21:23:24.681+0000: /Users/andreasronge/projects/neo4j-core/lib/db/neostore hit=0 miss=17 switches=0 ooe=0
|
|
604
|
+
2012-12-08 21:23:24.682+0000: NeoStore closed
|
|
605
|
+
2012-12-08 21:23:24.682+0000: --- STOPPING diagnostics START ---
|
|
606
|
+
2012-12-08 21:23:24.682+0000: --- STOPPING diagnostics END ---
|
data/lib/db/neostore
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/db/tm_tx_log.1
CHANGED
|
Binary file
|
data/lib/neo4j-core.rb
CHANGED
|
@@ -6,6 +6,8 @@ module Neo4j
|
|
|
6
6
|
Enumerator = Enumerable::Enumerator unless defined? Enumerator
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
require 'set'
|
|
10
|
+
|
|
9
11
|
require 'neo4j-cypher'
|
|
10
12
|
|
|
11
13
|
require 'neo4j-core/version'
|
|
@@ -42,8 +44,6 @@ require 'neo4j-core/index/indexer'
|
|
|
42
44
|
require 'neo4j-core/index/lucene_query'
|
|
43
45
|
require 'neo4j-core/index/unique_factory'
|
|
44
46
|
|
|
45
|
-
require 'neo4j-core/equal/equal'
|
|
46
|
-
|
|
47
47
|
require 'neo4j-core/wrapper/class_methods'
|
|
48
48
|
require 'neo4j-core/wrapper/wrapper'
|
|
49
49
|
|
data/lib/neo4j-core/database.rb
CHANGED
|
@@ -2,6 +2,9 @@ module Neo4j
|
|
|
2
2
|
module Core
|
|
3
3
|
module Property
|
|
4
4
|
|
|
5
|
+
# the valid values on a property, and arrays of those.
|
|
6
|
+
VALID_PROPERTY_VALUE_CLASSES = Set.new([Array, NilClass, String, Float, TrueClass, FalseClass, Fixnum])
|
|
7
|
+
|
|
5
8
|
# @return [Hash] all properties plus the id of the node with the key <tt>_neo_id</tt>
|
|
6
9
|
def props
|
|
7
10
|
ret = {"_neo_id" => neo_id}
|
|
@@ -69,6 +72,12 @@ module Neo4j
|
|
|
69
72
|
val.class.superclass == ArrayJavaProxy ? val.to_a : val
|
|
70
73
|
end
|
|
71
74
|
|
|
75
|
+
# @param [Object] value the value we want to check if it's a valid neo4j property value
|
|
76
|
+
# @return [True, False] A false means it can't be persisted.
|
|
77
|
+
def valid_property?(value)
|
|
78
|
+
VALID_PROPERTY_VALUE_CLASSES.include?(value.class)
|
|
79
|
+
end
|
|
80
|
+
|
|
72
81
|
# Sets the property of this node.
|
|
73
82
|
# Property keys are always strings. Valid property value types are the primitives(<tt>String</tt>, <tt>Fixnum</tt>, <tt>Float</tt>, <tt>FalseClass</tt>, <tt>TrueClass</tt>) or array of those primitives.
|
|
74
83
|
#
|
|
@@ -79,6 +88,8 @@ module Neo4j
|
|
|
79
88
|
# @param [String, Symbol] key of the property to set
|
|
80
89
|
# @param [String,Fixnum,Float,true,false, Array] value to set
|
|
81
90
|
def []=(key, value)
|
|
91
|
+
raise "Not valid Neo4j Property value #{value.class}, valid: #{VALID_PROPERTY_VALUE_CLASSES.join(', ')}" unless valid_property?(value)
|
|
92
|
+
|
|
82
93
|
k = key.to_s
|
|
83
94
|
if value.nil?
|
|
84
95
|
remove_property(k)
|
data/lib/neo4j-core/version.rb
CHANGED
data/lib/neo4j/config.rb
CHANGED
|
@@ -112,9 +112,9 @@ module Neo4j
|
|
|
112
112
|
to_hash.each_pair do |k, v|
|
|
113
113
|
case v
|
|
114
114
|
when TrueClass
|
|
115
|
-
map[k.to_s] = "
|
|
115
|
+
map[k.to_s] = "true"
|
|
116
116
|
when FalseClass
|
|
117
|
-
map[k.to_s] = "
|
|
117
|
+
map[k.to_s] = "false"
|
|
118
118
|
when String, Fixnum, Float
|
|
119
119
|
map[k.to_s] = v.to_s
|
|
120
120
|
# skip list and hash values - not accepted by the Java Neo4j API
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
module Neo4j
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# == Keeps configuration for neo4j
|
|
5
|
+
#
|
|
6
|
+
# The most important configuration is storage_path which is used to
|
|
7
|
+
# locate where the neo4j database is stored on the filesystem.
|
|
8
|
+
# If this directory is empty then a new database will be created, otherwise it will use the
|
|
9
|
+
# database from that directory.
|
|
10
|
+
#
|
|
11
|
+
# == Configurations keys
|
|
12
|
+
#
|
|
13
|
+
# storage_path where the database is stored
|
|
14
|
+
# timestamps if timestamps should be used when saving the model (Neo4j::Rails::Model)
|
|
15
|
+
# lucene lucene configuration for fulltext and exact indices
|
|
16
|
+
# enable_rules if false the _all relationship to all instances will not be created and custom rules will not be available. (Neo4j::NodeMixin and Neo4j::Rails::Model)
|
|
17
|
+
# identity_map default false, See Neo4j::IdentityMap (Neo4j::NodeMixin and Neo4j::Rails::Model)
|
|
18
|
+
#
|
|
19
|
+
class Config
|
|
20
|
+
|
|
21
|
+
class << self
|
|
22
|
+
|
|
23
|
+
# @return [Fixnum] The location of the default configuration file.
|
|
24
|
+
def default_file
|
|
25
|
+
@default_file ||= File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "config", "neo4j", "config.yml"))
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Sets the location of the configuration YAML file and old deletes configurations.
|
|
29
|
+
#
|
|
30
|
+
# @param [String] file_path represent the path to the file.
|
|
31
|
+
def default_file=(file_path)
|
|
32
|
+
@configuration = nil
|
|
33
|
+
@defaults = nil
|
|
34
|
+
@default_file = File.expand_path(file_path)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @return [Hash] the default file loaded by yaml
|
|
38
|
+
def defaults
|
|
39
|
+
require 'yaml'
|
|
40
|
+
@defaults ||= Neo4j::Core::HashWithIndifferentAccess.new(YAML.load_file(default_file))
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# @return [String] the expanded path of the Config[:storage_path] property
|
|
44
|
+
def storage_path
|
|
45
|
+
File.expand_path(self[:storage_path])
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Yields the configuration
|
|
49
|
+
#
|
|
50
|
+
# @example
|
|
51
|
+
# Neo4j::Config.use do |config|
|
|
52
|
+
# config[:storage_path] = '/var/neo4j'
|
|
53
|
+
# end
|
|
54
|
+
#
|
|
55
|
+
# @return nil
|
|
56
|
+
# @yield config
|
|
57
|
+
# @yieldparam [Neo4j::Config] config - this configuration class
|
|
58
|
+
def use
|
|
59
|
+
@configuration ||= Neo4j::Core::HashWithIndifferentAccess.new
|
|
60
|
+
yield @configuration
|
|
61
|
+
nil
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# Sets the value of a config entry.
|
|
66
|
+
#
|
|
67
|
+
# @param [Symbol] key the key to set the parameter for
|
|
68
|
+
# @param val the value of the parameter.
|
|
69
|
+
def []=(key, val)
|
|
70
|
+
(@configuration ||= setup)[key.to_s] = val
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
# @param [Symbol] key The key of the config entry value we want
|
|
75
|
+
# @return the the value of a config entry
|
|
76
|
+
def [](key)
|
|
77
|
+
(@configuration ||= setup)[key.to_s]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Remove the value of a config entry.
|
|
82
|
+
#
|
|
83
|
+
# @param [Symbol] key the key of the configuration entry to delete
|
|
84
|
+
# @return The value of the removed entry.
|
|
85
|
+
def delete(key)
|
|
86
|
+
@configuration.delete(key)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# Remove all configuration. This can be useful for testing purpose.
|
|
91
|
+
#
|
|
92
|
+
# @return nil
|
|
93
|
+
def delete_all
|
|
94
|
+
@configuration = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# @return [Hash] The config as a hash.
|
|
99
|
+
def to_hash
|
|
100
|
+
@configuration ||= setup
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @return [String] The config as a YAML
|
|
104
|
+
def to_yaml
|
|
105
|
+
@configuration.to_yaml
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Converts the defaults hash to a Java HashMap used by the Neo4j API.
|
|
109
|
+
# @return a Java HashMap used by the Java Neo4j API as configuration for the GraphDatabase
|
|
110
|
+
def to_java_map
|
|
111
|
+
map = java.util.HashMap.new
|
|
112
|
+
to_hash.each_pair do |k, v|
|
|
113
|
+
case v
|
|
114
|
+
when TrueClass
|
|
115
|
+
map[k.to_s] = "YES"
|
|
116
|
+
when FalseClass
|
|
117
|
+
map[k.to_s] = "NO"
|
|
118
|
+
when String, Fixnum, Float
|
|
119
|
+
map[k.to_s] = v.to_s
|
|
120
|
+
# skip list and hash values - not accepted by the Java Neo4j API
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
map
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# @return The a new configuration using default values as a hash.
|
|
127
|
+
def setup()
|
|
128
|
+
@configuration = Neo4j::Core::HashWithIndifferentAccess.new
|
|
129
|
+
@configuration.merge!(defaults)
|
|
130
|
+
@configuration
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
end
|
data/lib/neo4j/node.rb
CHANGED
|
@@ -33,7 +33,6 @@ module Neo4j
|
|
|
33
33
|
include Neo4j::Core::Property
|
|
34
34
|
include Neo4j::Core::Rels
|
|
35
35
|
include Neo4j::Core::Traversal
|
|
36
|
-
include Neo4j::Core::Equal
|
|
37
36
|
include Neo4j::Core::Node
|
|
38
37
|
include Neo4j::Core::Wrapper
|
|
39
38
|
include Neo4j::Core::Property::Java # for documentation purpose only
|
|
@@ -52,7 +51,6 @@ module Neo4j
|
|
|
52
51
|
include Neo4j::Core::Property
|
|
53
52
|
include Neo4j::Core::Rels
|
|
54
53
|
include Neo4j::Core::Traversal
|
|
55
|
-
include Neo4j::Core::Equal
|
|
56
54
|
include Neo4j::Core::Node
|
|
57
55
|
include Neo4j::Core::Wrapper
|
|
58
56
|
include Neo4j::Core::Index
|
data/lib/neo4j/relationship.rb
CHANGED
|
@@ -44,7 +44,6 @@ module Neo4j
|
|
|
44
44
|
extend Neo4j::Core::Index::ClassMethods
|
|
45
45
|
|
|
46
46
|
include Neo4j::Core::Property
|
|
47
|
-
include Neo4j::Core::Equal
|
|
48
47
|
include Neo4j::Core::Relationship
|
|
49
48
|
include Neo4j::Core::Wrapper
|
|
50
49
|
include Neo4j::Core::Property::Java # for documentation purpose only
|
|
@@ -64,7 +63,6 @@ module Neo4j
|
|
|
64
63
|
def extend_java_class(java_clazz) #:nodoc:
|
|
65
64
|
java_clazz.class_eval do
|
|
66
65
|
include Neo4j::Core::Property
|
|
67
|
-
include Neo4j::Core::Equal
|
|
68
66
|
include Neo4j::Core::Relationship
|
|
69
67
|
include Neo4j::Core::Wrapper
|
|
70
68
|
include Neo4j::Core::Index
|
data/neo4j-core.gemspec
CHANGED
|
@@ -28,5 +28,5 @@ It comes included with the Apache Lucene document database.
|
|
|
28
28
|
s.rdoc_options = ["--quiet", "--title", "Neo4j::Core", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
|
|
29
29
|
|
|
30
30
|
s.add_dependency("neo4j-community", '>= 1.8.M05', '< 1.9')
|
|
31
|
-
s.add_dependency("neo4j-cypher", '~> 1.0.0
|
|
31
|
+
s.add_dependency("neo4j-cypher", '~> 1.0.0')
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: neo4j-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
version: 2.2.1
|
|
5
|
+
prerelease:
|
|
6
6
|
platform: java
|
|
7
7
|
authors:
|
|
8
8
|
- Andreas Ronge
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: neo4j-community
|
|
@@ -41,18 +41,18 @@ dependencies:
|
|
|
41
41
|
requirements:
|
|
42
42
|
- - ~>
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
|
-
version: 1.0.0
|
|
44
|
+
version: 1.0.0
|
|
45
45
|
none: false
|
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
|
47
47
|
requirements:
|
|
48
48
|
- - ~>
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: 1.0.0
|
|
50
|
+
version: 1.0.0
|
|
51
51
|
none: false
|
|
52
52
|
prerelease: false
|
|
53
53
|
type: :runtime
|
|
54
|
-
description:
|
|
55
|
-
\
|
|
54
|
+
description: "You can think of Neo4j as a high-performance graph engine with all the\
|
|
55
|
+
\ features of a mature and robust database.\nThe programmer works with an object-oriented,\
|
|
56
56
|
\ flexible network structure rather than with strict and static tables \nyet enjoys\
|
|
57
57
|
\ all the benefits of a fully transactional, enterprise-strength database.\nIt comes\
|
|
58
58
|
\ included with the Apache Lucene document database.\n"
|
|
@@ -62,146 +62,77 @@ extensions: []
|
|
|
62
62
|
extra_rdoc_files:
|
|
63
63
|
- README.rdoc
|
|
64
64
|
files:
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
-
|
|
115
|
-
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
- !binary |-
|
|
137
|
-
bGliL25lbzRqL3RyYW5zYWN0aW9uLnJi
|
|
138
|
-
- !binary |-
|
|
139
|
-
bGliL25lbzRqLWNvcmUvZGF0YWJhc2UucmI=
|
|
140
|
-
- !binary |-
|
|
141
|
-
bGliL25lbzRqLWNvcmUvZXZlbnRfaGFuZGxlci5yYg==
|
|
142
|
-
- !binary |-
|
|
143
|
-
bGliL25lbzRqLWNvcmUvaGFzaF93aXRoX2luZGlmZmVyZW50X2FjY2Vzcy5y
|
|
144
|
-
Yg==
|
|
145
|
-
- !binary |-
|
|
146
|
-
bGliL25lbzRqLWNvcmUvbGF6eV9tYXAucmI=
|
|
147
|
-
- !binary |-
|
|
148
|
-
bGliL25lbzRqLWNvcmUvcmVsYXRpb25zaGlwX3NldC5yYg==
|
|
149
|
-
- !binary |-
|
|
150
|
-
bGliL25lbzRqLWNvcmUvdG9famF2YS5yYg==
|
|
151
|
-
- !binary |-
|
|
152
|
-
bGliL25lbzRqLWNvcmUvdmVyc2lvbi5yYg==
|
|
153
|
-
- !binary |-
|
|
154
|
-
bGliL25lbzRqLWNvcmUvZXF1YWwvZXF1YWwucmI=
|
|
155
|
-
- !binary |-
|
|
156
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvY2xhc3NfbWV0aG9kcy5yYg==
|
|
157
|
-
- !binary |-
|
|
158
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvaW5kZXgucmI=
|
|
159
|
-
- !binary |-
|
|
160
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvaW5kZXhfY29uZmlnLnJi
|
|
161
|
-
- !binary |-
|
|
162
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvaW5kZXhlci5yYg==
|
|
163
|
-
- !binary |-
|
|
164
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvaW5kZXhlcl9yZWdpc3RyeS5yYg==
|
|
165
|
-
- !binary |-
|
|
166
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvbHVjZW5lX3F1ZXJ5LnJi
|
|
167
|
-
- !binary |-
|
|
168
|
-
bGliL25lbzRqLWNvcmUvaW5kZXgvdW5pcXVlX2ZhY3RvcnkucmI=
|
|
169
|
-
- !binary |-
|
|
170
|
-
bGliL25lbzRqLWNvcmUvbm9kZS9jbGFzc19tZXRob2RzLnJi
|
|
171
|
-
- !binary |-
|
|
172
|
-
bGliL25lbzRqLWNvcmUvbm9kZS9ub2RlLnJi
|
|
173
|
-
- !binary |-
|
|
174
|
-
bGliL25lbzRqLWNvcmUvcHJvcGVydHkvamF2YS5yYg==
|
|
175
|
-
- !binary |-
|
|
176
|
-
bGliL25lbzRqLWNvcmUvcHJvcGVydHkvcHJvcGVydHkucmI=
|
|
177
|
-
- !binary |-
|
|
178
|
-
bGliL25lbzRqLWNvcmUvcmVsYXRpb25zaGlwL2NsYXNzX21ldGhvZHMucmI=
|
|
179
|
-
- !binary |-
|
|
180
|
-
bGliL25lbzRqLWNvcmUvcmVsYXRpb25zaGlwL3JlbGF0aW9uc2hpcC5yYg==
|
|
181
|
-
- !binary |-
|
|
182
|
-
bGliL25lbzRqLWNvcmUvcmVscy9yZWxzLnJi
|
|
183
|
-
- !binary |-
|
|
184
|
-
bGliL25lbzRqLWNvcmUvcmVscy90cmF2ZXJzZXIucmI=
|
|
185
|
-
- !binary |-
|
|
186
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL2V2YWx1YXRvci5yYg==
|
|
187
|
-
- !binary |-
|
|
188
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL2ZpbHRlcl9wcmVkaWNhdGUucmI=
|
|
189
|
-
- !binary |-
|
|
190
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL3BydW5lX2V2YWx1YXRvci5yYg==
|
|
191
|
-
- !binary |-
|
|
192
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL3JlbF9leHBhbmRlci5yYg==
|
|
193
|
-
- !binary |-
|
|
194
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL3RyYXZlcnNhbC5yYg==
|
|
195
|
-
- !binary |-
|
|
196
|
-
bGliL25lbzRqLWNvcmUvdHJhdmVyc2FsL3RyYXZlcnNlci5yYg==
|
|
197
|
-
- !binary |-
|
|
198
|
-
bGliL25lbzRqLWNvcmUvd3JhcHBlci9jbGFzc19tZXRob2RzLnJi
|
|
199
|
-
- !binary |-
|
|
200
|
-
bGliL25lbzRqLWNvcmUvd3JhcHBlci93cmFwcGVyLnJi
|
|
201
|
-
- !binary |-
|
|
202
|
-
Y29uZmlnL25lbzRqL2NvbmZpZy55bWw=
|
|
203
|
-
- !binary |-
|
|
204
|
-
Y29uZmlnL25lbzRqL2NvbmZpZy55bWx+
|
|
65
|
+
- lib/neo4j-core.rb
|
|
66
|
+
- lib/db/active_tx_log
|
|
67
|
+
- lib/db/messages.log
|
|
68
|
+
- lib/db/neostore
|
|
69
|
+
- lib/db/neostore.id
|
|
70
|
+
- lib/db/neostore.nodestore.db
|
|
71
|
+
- lib/db/neostore.nodestore.db.id
|
|
72
|
+
- lib/db/neostore.propertystore.db
|
|
73
|
+
- lib/db/neostore.propertystore.db.arrays
|
|
74
|
+
- lib/db/neostore.propertystore.db.arrays.id
|
|
75
|
+
- lib/db/neostore.propertystore.db.id
|
|
76
|
+
- lib/db/neostore.propertystore.db.index
|
|
77
|
+
- lib/db/neostore.propertystore.db.index.id
|
|
78
|
+
- lib/db/neostore.propertystore.db.index.keys
|
|
79
|
+
- lib/db/neostore.propertystore.db.index.keys.id
|
|
80
|
+
- lib/db/neostore.propertystore.db.strings
|
|
81
|
+
- lib/db/neostore.propertystore.db.strings.id
|
|
82
|
+
- lib/db/neostore.relationshipstore.db
|
|
83
|
+
- lib/db/neostore.relationshipstore.db.id
|
|
84
|
+
- lib/db/neostore.relationshiptypestore.db
|
|
85
|
+
- lib/db/neostore.relationshiptypestore.db.id
|
|
86
|
+
- lib/db/neostore.relationshiptypestore.db.names
|
|
87
|
+
- lib/db/neostore.relationshiptypestore.db.names.id
|
|
88
|
+
- lib/db/nioneo_logical.log.active
|
|
89
|
+
- lib/db/nioneo_logical.log.v0
|
|
90
|
+
- lib/db/nioneo_logical.log.v1
|
|
91
|
+
- lib/db/tm_tx_log.1
|
|
92
|
+
- lib/db/index/lucene-store.db
|
|
93
|
+
- lib/db/index/lucene.log.active
|
|
94
|
+
- lib/db/index/lucene.log.v0
|
|
95
|
+
- lib/db/index/lucene.log.v1
|
|
96
|
+
- lib/neo4j/algo.rb
|
|
97
|
+
- lib/neo4j/config.rb
|
|
98
|
+
- lib/neo4j/config.rb~
|
|
99
|
+
- lib/neo4j/neo4j.rb
|
|
100
|
+
- lib/neo4j/node.rb
|
|
101
|
+
- lib/neo4j/relationship.rb
|
|
102
|
+
- lib/neo4j/transaction.rb
|
|
103
|
+
- lib/neo4j-core/database.rb
|
|
104
|
+
- lib/neo4j-core/event_handler.rb
|
|
105
|
+
- lib/neo4j-core/hash_with_indifferent_access.rb
|
|
106
|
+
- lib/neo4j-core/lazy_map.rb
|
|
107
|
+
- lib/neo4j-core/relationship_set.rb
|
|
108
|
+
- lib/neo4j-core/to_java.rb
|
|
109
|
+
- lib/neo4j-core/version.rb
|
|
110
|
+
- lib/neo4j-core/version.rb~
|
|
111
|
+
- lib/neo4j-core/index/class_methods.rb
|
|
112
|
+
- lib/neo4j-core/index/index.rb
|
|
113
|
+
- lib/neo4j-core/index/index_config.rb
|
|
114
|
+
- lib/neo4j-core/index/indexer.rb
|
|
115
|
+
- lib/neo4j-core/index/indexer_registry.rb
|
|
116
|
+
- lib/neo4j-core/index/lucene_query.rb
|
|
117
|
+
- lib/neo4j-core/index/unique_factory.rb
|
|
118
|
+
- lib/neo4j-core/node/class_methods.rb
|
|
119
|
+
- lib/neo4j-core/node/node.rb
|
|
120
|
+
- lib/neo4j-core/property/java.rb
|
|
121
|
+
- lib/neo4j-core/property/property.rb
|
|
122
|
+
- lib/neo4j-core/relationship/class_methods.rb
|
|
123
|
+
- lib/neo4j-core/relationship/relationship.rb
|
|
124
|
+
- lib/neo4j-core/rels/rels.rb
|
|
125
|
+
- lib/neo4j-core/rels/traverser.rb
|
|
126
|
+
- lib/neo4j-core/traversal/evaluator.rb
|
|
127
|
+
- lib/neo4j-core/traversal/filter_predicate.rb
|
|
128
|
+
- lib/neo4j-core/traversal/prune_evaluator.rb
|
|
129
|
+
- lib/neo4j-core/traversal/rel_expander.rb
|
|
130
|
+
- lib/neo4j-core/traversal/traversal.rb
|
|
131
|
+
- lib/neo4j-core/traversal/traverser.rb
|
|
132
|
+
- lib/neo4j-core/wrapper/class_methods.rb
|
|
133
|
+
- lib/neo4j-core/wrapper/wrapper.rb
|
|
134
|
+
- config/neo4j/config.yml
|
|
135
|
+
- config/neo4j/config.yml~
|
|
205
136
|
- README.rdoc
|
|
206
137
|
- Gemfile
|
|
207
138
|
- neo4j-core.gemspec
|
|
@@ -226,10 +157,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
226
157
|
none: false
|
|
227
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
159
|
requirements:
|
|
229
|
-
- - !
|
|
230
|
-
Pg==
|
|
160
|
+
- - ! '>='
|
|
231
161
|
- !ruby/object:Gem::Version
|
|
232
|
-
|
|
162
|
+
segments:
|
|
163
|
+
- 0
|
|
164
|
+
version: !binary |-
|
|
165
|
+
MA==
|
|
166
|
+
hash: 2
|
|
233
167
|
none: false
|
|
234
168
|
requirements: []
|
|
235
169
|
rubyforge_project: neo4j-core
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module Neo4j
|
|
2
|
-
module Core
|
|
3
|
-
|
|
4
|
-
# == This mixin is used for both nodes and relationships to decide if two entities are equal or not.
|
|
5
|
-
#
|
|
6
|
-
module Equal
|
|
7
|
-
def equal?(o)
|
|
8
|
-
eql?(o)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
def eql?(o)
|
|
12
|
-
return false unless o.respond_to?(:getId)
|
|
13
|
-
o.getId == getId
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def ==(o)
|
|
17
|
-
eql?(o)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
end
|