Code Review
/
aai
/
champ.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Create vertex and edge indicies on startup
[aai/champ.git]
/
champ-lib
/
champ-core
/
src
/
main
/
java
/
org
/
onap
/
aai
/
champcore
/
ie
/
GraphMLImporterExporter.java
diff --git
a/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/ie/GraphMLImporterExporter.java
b/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/ie/GraphMLImporterExporter.java
index
9f2f719
..
36a3da0
100644
(file)
--- a/
champ-lib/champ-core/src/main/java/org/onap/aai/champcore/ie/GraphMLImporterExporter.java
+++ b/
champ-lib/champ-core/src/main/java/org/onap/aai/champcore/ie/GraphMLImporterExporter.java
@@
-23,6
+23,7
@@
package org.onap.aai.champcore.ie;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
@@
-151,10
+152,12
@@
public class GraphMLImporterExporter implements Importer, Exporter {
final String graphName = graph.getAttributes().getNamedItem("id").getNodeValue();
final NodeList nodesAndEdges = graph.getChildNodes();
final String graphName = graph.getAttributes().getNamedItem("id").getNodeValue();
final NodeList nodesAndEdges = graph.getChildNodes();
+ List<String> fields = new ArrayList<String>();
+ fields.add("importAssignedId");
api.getGraph(graphName).storeObjectIndex(ChampObjectIndex.create()
.ofName("importAssignedId")
.onAnyType()
api.getGraph(graphName).storeObjectIndex(ChampObjectIndex.create()
.ofName("importAssignedId")
.onAnyType()
- .forField
("importAssignedId"
)
+ .forField
s(fields
)
.build());
for (int j = 0; j < nodesAndEdges.getLength(); j++) {
.build());
for (int j = 0; j < nodesAndEdges.getLength(); j++) {