ChampIndexNotExistsException {
// Create an index object and store it in the graph.
+ List<String> fields = new ArrayList<String>();
+ fields.add("myField");
ChampObjectIndex objIndex = ChampObjectIndex.create()
.ofName("myIndex")
.onType("type")
- .forField("myField")
+ .forFields(fields)
.build();
testGraph.storeObjectIndex(objIndex);
testGraph.returnNulls();
// Create an index object and store it in the graph.
+ List<String> fields = new ArrayList<String>();
+ fields.add("myField");
ChampObjectIndex objIndex = ChampObjectIndex.create()
.ofName("myIndex")
.onType("type")
- .forField("myField")
+ .forFields(fields)
.build();
testGraph.storeObjectIndex(objIndex);
public Optional<ChampObjectIndex> retrieveObjectIndex(String indexName) {
if(!returnNulls) {
+ List<String> fields = new ArrayList<String>();
+ fields.add("doesnt matter");
return Optional.of(ChampObjectIndex.create()
.ofName(indexName)
.onType("doesnt matter")
- .forField("doesnt matter")
+ .forFields(fields)
.build());
} else {
return Optional.empty();
public void rollbackTransaction(ChampTransaction transaction) {
// Not used by any tests.
}
+
+ @Override
+ public void createDefaultIndexes() {
+ // TODO Auto-generated method stub
+
+ }
}
private class InMemoryPublisher implements EventPublisher {