Add DOMQueryResult streaming interfaces
Current definition is really an implementation-specific. The API
exposed from DOMQueryResult is eager, not allowing for eager
termination of searching.
Fix this by turning DOMQueryResult into an interface and add
an eager implementation to match current behavior.
Also update DefaultQueryResult to take advantage of lazy
transformations.
JIRA: MDSAL-605
Change-Id: I8375954e09ce6139aad0f83e883ed75771faceab
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
b620c86025390e3f86eaade9f9c0f102ce6313fa)