Bug 5581: Optimize subtree filtering 78/53678/3
authorAndrej Mak <andrej.mak@pantheon.tech>
Thu, 9 Feb 2017 13:35:14 +0000 (14:35 +0100)
committerAndrej Mak <andrej.mak@pantheon.tech>
Mon, 10 Apr 2017 08:45:08 +0000 (08:45 +0000)
commita728c028309ef356c4179f3c510b8e0a66a6a62f
tree8b40cbe13cf22066b3f4103ec2d34e367f9d29ce
parent751b3f739cb75bef573f0c9390a84800f5e4dcce
Bug 5581: Optimize subtree filtering

If single list entry with key is specified in filter,
only that specific entry is read from datastore, thus
filtering has smaller input to process.

Change-Id: Iae46e3c25067d35f6bcacc40d0997d008da8fb29
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/FilterContentValidator.java
netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/get/FilterContentValidatorTest.java
netconf/mdsal-netconf-connector/src/test/resources/filter/expected.txt
netconf/mdsal-netconf-connector/src/test/resources/filter/f10.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/filter/f11.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/filter/f12.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/filter/f13.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/filter/f9.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/yang/filter-validator-test-mod-0.yang