pacer-neo4j 2.1.4-java → 2.1.5-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7190dda6385c119ecea1c959a2778eebf00da79c
4
- data.tar.gz: 93c2c9f4ebe74afa68cfaa98ed3e00ed5a7ea123
3
+ metadata.gz: c9c22f5f593455c5139467230bddbb2fc3626267
4
+ data.tar.gz: f2c574e9b285bbb6f2d496475f955c2df8aba130
5
5
  SHA512:
6
- metadata.gz: a0849277cbe979a44d5a8e17ca7c00b0e928042059b1a21a116e2232de98749b3d96727be379b2cf56355ed0d94a26ca5f8328074a4a6dff867169b78a33ed90
7
- data.tar.gz: 07db1630318fa5320ec0e241d40f84b83d69f1680134a253d572868eebc01a7a14563973e4f561f8be7f562340ec8bc743b7885634c86f9bcb53c7b1b717c675
6
+ metadata.gz: dd6ef2ced39f69651c891dd0bd10f83ac0123782a43112f76330b883683d1d7d2e8af3409b1a57f3f37453266c7923474f79261b24b3db682a4ac2fb976eaacb
7
+ data.tar.gz: 9a0d34e51b1e8442dbcf53af36148136fe13477132c4f41f781e9a443e0385d3b33d636fb5bff8c5b040d6987ee89ba28c4201dd4fc959560579d08bb414dee8
@@ -358,13 +358,13 @@ end
358
358
  else
359
359
  e = Traversal.emptyExpander
360
360
  [*out_labels].each do |label|
361
- e.add DynamicRelationshipType.withName(label.to_s), Direction::OUTGOING
361
+ e = e.add DynamicRelationshipType.withName(label.to_s), Direction::OUTGOING
362
362
  end
363
363
  [*in_labels].each do |label|
364
- e.add DynamicRelationshipType.withName(label.to_s), Direction::INCOMING
364
+ e = e.add DynamicRelationshipType.withName(label.to_s), Direction::INCOMING
365
365
  end
366
366
  [*both_labels].each do |label|
367
- e.add DynamicRelationshipType.withName(label.to_s), Direction::BOTH
367
+ e = e.add DynamicRelationshipType.withName(label.to_s), Direction::BOTH
368
368
  end
369
369
  e
370
370
  end
@@ -52,6 +52,7 @@ module Pacer
52
52
  # either the max existing ID, or the min_new_id argument.
53
53
  def prevent_vertex_id_reuse!(min_new_id = nil)
54
54
  min_new_id ||= v.element_ids.max
55
+ return unless min_new_id
55
56
  g = blueprints_graph
56
57
  n = 0
57
58
  transaction do |_, rollback|
@@ -66,6 +67,7 @@ module Pacer
66
67
 
67
68
  def prevent_edge_id_reuse!(min_new_id = nil)
68
69
  min_new_id ||= e.element_ids.max
70
+ return unless min_new_id
69
71
  g = blueprints_graph
70
72
  n = 0
71
73
  transaction do |_, rollback|
@@ -118,6 +120,23 @@ module Pacer
118
120
  neo_graph.unregisterTransactionEventHandler h
119
121
  end
120
122
 
123
+ # Creates a Blueprints key index without doing a rebuild.
124
+ def create_key_index_fast(name, type = :vertex)
125
+ raise "Invalid index type #{ type }" unless [:vertex, :edge].include? type
126
+ keys = (key_indices(type) + [name.to_s]).to_a
127
+ neo_settings = neo_graph.getNodeManager.getGraphProperties
128
+ iz = neo_graph.index.getNodeAutoIndexer
129
+ prop = ((type == :vertex) ? "Vertex:indexed_keys" : "Edge:indexed_keys")
130
+ transaction do
131
+ create_vertex.delete! # this forces Blueprints to actually start the transaction
132
+ neo_settings.setProperty prop, keys.to_java(:string)
133
+ keys.each do |key|
134
+ iz.startAutoIndexingProperty key
135
+ end
136
+ end
137
+ end
138
+
139
+
121
140
  private
122
141
 
123
142
  def index_properties(type, filters)
@@ -190,6 +209,8 @@ module Pacer
190
209
  if search_manual_indices
191
210
  super
192
211
  else
212
+ filters.graph = self
213
+ filters.use_lookup!
193
214
  query = build_query(element_type, filters)
194
215
  if query
195
216
  route = lucene query, element_type: element_type, extensions: filters.extensions, wrapper: filters.wrapper
@@ -1,6 +1,6 @@
1
1
  module Pacer
2
2
  module Neo4j
3
- VERSION = "2.1.4"
3
+ VERSION = "2.1.5"
4
4
  JAR = "pacer-neo4j-#{ VERSION }-standalone.jar"
5
5
  JAR_PATH = "lib/#{ JAR }"
6
6
  BLUEPRINTS_VERSION = "2.3.0"
data/pom.xml CHANGED
@@ -8,7 +8,7 @@
8
8
  <!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
9
9
  <properties>
10
10
  <blueprints.version>2.3.0</blueprints.version>
11
- <gem.version>2.1.4</gem.version>
11
+ <gem.version>2.1.5</gem.version>
12
12
  <pipes.version>2.3.0</pipes.version>
13
13
  </properties>
14
14
  <!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pacer-neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: java
6
6
  authors:
7
7
  - Darrick Wiebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-04 00:00:00.000000000 Z
11
+ date: 2013-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pacer
@@ -56,7 +56,7 @@ files:
56
56
  - pacer-neo4j.gemspec
57
57
  - pom.xml
58
58
  - pom/standalone.xml
59
- - lib/pacer-neo4j-2.1.4-standalone.jar
59
+ - lib/pacer-neo4j-2.1.5-standalone.jar
60
60
  homepage: http://neo4j.org
61
61
  licenses: []
62
62
  metadata: {}