From 2e07b499eb798c19c8641078ff79364f9439a281 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Wed, 8 Mar 2023 13:50:34 +0000 Subject: Fetch fragment entities using recursive SQL query - Add SQL query that can fetch needed fragments to any given depth - Update getFragmentEntities to use new query - Remove now unused FragmentRepositoryMultiPathQuery - Remove unused TempTableCreator method - Result: getDataNodesForMultipleXpaths is up to 10 times faster Issue-ID: CPS-1525 Signed-off-by: danielhanrahan Change-Id: I07cbc9da5ab994ce7e0c2b02d7ca05089f05dab0 --- .../src/main/java/org/onap/cps/spi/FetchDescendantsOption.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cps-service/src') diff --git a/cps-service/src/main/java/org/onap/cps/spi/FetchDescendantsOption.java b/cps-service/src/main/java/org/onap/cps/spi/FetchDescendantsOption.java index cf5e04dc4..02574995d 100644 --- a/cps-service/src/main/java/org/onap/cps/spi/FetchDescendantsOption.java +++ b/cps-service/src/main/java/org/onap/cps/spi/FetchDescendantsOption.java @@ -75,6 +75,14 @@ public class FetchDescendantsOption { return nextDescendantsOption; } + /** + * Get depth. + * @return depth: -1 for all descendants, 0 for no descendants, or positive value for fixed level of descendants + */ + public int getDepth() { + return depth; + } + /** * get fetch descendants option for given descendant. * -- cgit 1.2.3-korg