summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-06-12 13:40:51 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-06-12 13:40:51 +0200
commitb62fc3ddf19b23a8b7cd52e718bced699444dd84 (patch)
treed57dafc670d04747b9cadfbb67a9e8bcc94bce97 /aai-traversal/src/main
parent73133eaa2339548d8293f8069e314bf564fbedc6 (diff)
Update aai-common to 1.14.0 in traversal1.14.0
- update aai-common to 1.14.0 which contains Janusgraph update to 0.3.3 Issue-ID: AAI-3870 Change-Id: I7200d140a04845866bb189d8bdf5a820a710dd68 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-traversal/src/main')
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
index a953fcb..524321f 100644
--- a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
+++ b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryBuilder.java
@@ -88,7 +88,7 @@ public class DslQueryBuilder {
if (selectCounter <= 0) {
return this.end();
} else {
- query.append(".select('stepMain').fold().dedup()");
+ query.append(".select(Pop.mixed,'stepMain').fold().dedup()");
}
return this;
}
@@ -244,14 +244,15 @@ public class DslQueryBuilder {
}
+ private static final Pattern AAI_NODE_TYPE_PATTERN = Pattern.compile("aai-node-type");
+
public DslQueryBuilder select(long selectCounter, List<String> keys) {
/*
* TODO : isNot should look at the vertex properties and include everything except the
* notKeys
*/
- Pattern p = Pattern.compile("aai-node-type");
- Matcher m = p.matcher(query);
+ Matcher m = AAI_NODE_TYPE_PATTERN.matcher(query);
int count = 0;
while (m.find()) {
count++;
@@ -260,7 +261,7 @@ public class DslQueryBuilder {
if (selectCounter == count || keys == null) {
String selectStep = "step" + selectCounter;
// String keysArray = String.join(",", keys);
- query.append(".as('").append(selectStep).append("')").append(".as('stepMain').select('")
+ query.append(".as('").append(selectStep).append("')").append(".as('stepMain').select(Pop.mixed,'")
.append(selectStep).append("')");
}
return this;