Enhancements for the aai-common library
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / serialization / engines / query / QueryEngine.java
index 4f30b56..b250d8f 100644 (file)
@@ -22,6 +22,7 @@ package org.onap.aai.serialization.engines.query;
 
 import java.util.List;
 
+import org.apache.tinkerpop.gremlin.process.traversal.Path;
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
 import org.apache.tinkerpop.gremlin.process.traversal.step.util.Tree;
 import org.apache.tinkerpop.gremlin.structure.Direction;
@@ -81,7 +82,7 @@ public abstract class QueryEngine {
 
     /**
      * Finds all immediate children of start (no grandchildren or so forth) of the given type
-     * 
+     *
      * @param start - the start vertex
      * @param type - the desired aai-node-type
      * @return the list of immediate child vertices of given type
@@ -90,7 +91,7 @@ public abstract class QueryEngine {
 
     /**
      * Finds all immediate children of start (no grandchildren or so forth)
-     * 
+     *
      * @param start - the start vertex
      * @return the list of immediate child vertices
      */
@@ -173,6 +174,8 @@ public abstract class QueryEngine {
      */
     public abstract List<Vertex> findCousinVertices(Vertex start, String... labels);
 
+    public abstract List<Path> findCousinsAsPath(Vertex start);
+
     public abstract double getDBTimeMsecs();
 
 }