package org.onap.aai.champcore.graph.impl;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import org.onap.aai.champcore.ChampTransaction;
import org.onap.aai.champcore.NoOpTinkerPopTransaction;
import org.onap.aai.champcore.exceptions.ChampIndexNotExistsException;
-import org.onap.aai.champcore.model.ChampObject;
import org.onap.aai.champcore.model.ChampObjectIndex;
import org.onap.aai.champcore.model.ChampRelationshipIndex;
import org.onap.aai.champcore.schema.ChampSchemaEnforcer;
if (isShutdown()) throw new IllegalStateException("Cannot call storeObjectIndex() after shutdown has been initiated");
- getGraph().createIndex(index.getField().getName(), Vertex.class);
+ getGraph().createIndex(index.getFields().get(0).getName(), Vertex.class);
getObjectIndices().put(index.getName(), index);
}
if (objectIndex == null) throw new ChampIndexNotExistsException();
- getGraph().dropIndex(objectIndex.getField().getName(), Vertex.class);
+ getGraph().dropIndex(objectIndex.getFields().get(0).getName(), Vertex.class);
}
public void executeStoreRelationshipIndex(ChampRelationshipIndex index) {
public GraphTraversal<?, ?> hasLabel(GraphTraversal<?, ?> query, Object type) {
return query.hasLabel((String)type, (String)type);
}
+
+ @Override
+ public void createDefaultIndexes() {
+
+ }
}