Code Review
/
aai
/
aai-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Enhance SchemaGenerator to also generate indices for relationships
[aai/aai-common.git]
/
aai-core
/
src
/
main
/
java
/
org
/
onap
/
aai
/
dbmap
/
InMemoryGraph.java
diff --git
a/aai-core/src/main/java/org/onap/aai/dbmap/InMemoryGraph.java
b/aai-core/src/main/java/org/onap/aai/dbmap/InMemoryGraph.java
index
51a2c22
..
cca11c6
100644
(file)
--- a/
aai-core/src/main/java/org/onap/aai/dbmap/InMemoryGraph.java
+++ b/
aai-core/src/main/java/org/onap/aai/dbmap/InMemoryGraph.java
@@
-50,10
+50,9
@@
public class InMemoryGraph {
Properties graphProps = new Properties();
graphProps.load(is);
Properties graphProps = new Properties();
graphProps.load(is);
- JanusGraphManagement graphMgt = graph.openManagement();
if (builder.isSchemaEnabled) {
LOGGER.info("Schema Enabled");
if (builder.isSchemaEnabled) {
LOGGER.info("Schema Enabled");
- SchemaGenerator.loadSchemaIntoJanusGraph(graph
Mgt, graphProps.getProperty("storage.backend")
);
+ SchemaGenerator.loadSchemaIntoJanusGraph(graph
, graphProps.getProperty("storage.backend"), false
);
}
try (JanusGraphTransaction transaction = graph.newTransaction()) {
LOGGER.info("Loading snapshot");
}
try (JanusGraphTransaction transaction = graph.newTransaction()) {
LOGGER.info("Loading snapshot");