aboutsummaryrefslogtreecommitdiffstats
path: root/champ-lib/champ-titan/src/test/java/org/onap
diff options
context:
space:
mode:
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>2019-03-15 14:20:53 -0400
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>2019-03-15 14:36:49 -0400
commit56253dc9561d5b24919bf59f83ccc55934d8ad50 (patch)
treee9e1815a84338ae615cbbbf05df1b24a96d71939 /champ-lib/champ-titan/src/test/java/org/onap
parent73fc9e36510c27899e60a707e8fcadb8a759f0d1 (diff)
Create vertex and edge indicies on startup
Change-Id: I3ee538796e21a0667df4b4dbbdfec40f5b4ca30d Issue-ID: AAI-2265 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
Diffstat (limited to 'champ-lib/champ-titan/src/test/java/org/onap')
-rw-r--r--champ-lib/champ-titan/src/test/java/org/onap/aai/champtitan/perf/ChampAPIPerformanceTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/champ-lib/champ-titan/src/test/java/org/onap/aai/champtitan/perf/ChampAPIPerformanceTest.java b/champ-lib/champ-titan/src/test/java/org/onap/aai/champtitan/perf/ChampAPIPerformanceTest.java
index cb9ad91..89dbe96 100644
--- a/champ-lib/champ-titan/src/test/java/org/onap/aai/champtitan/perf/ChampAPIPerformanceTest.java
+++ b/champ-lib/champ-titan/src/test/java/org/onap/aai/champtitan/perf/ChampAPIPerformanceTest.java
@@ -225,11 +225,13 @@ public class ChampAPIPerformanceTest {
}
private static void storeIndices(ChampGraph graph, boolean warmUp) {
+ List<String> fields = new ArrayList<String>();
+ fields.add("objectNumber");
graph.storeObjectIndex(
ChampObjectIndex.create()
.ofName("objectNumberIndex")
.onType("foo")
- .forField("objectNumber")
+ .forFields(fields)
.build()
);