Class CollectingIntermediateResultElementSink
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.CollectingIntermediateResultElementSink
- All Implemented Interfaces:
IntermediateResultElementSink
- Direct Known Subclasses:
CollectingIntermediateResultElementSinkWithTranslation
public class CollectingIntermediateResultElementSink
extends Object
implements IntermediateResultElementSink
A (thread-safe) implementation of
IntermediateResultElementSink
that collects all solution mappings that are sent to it. The
collected solution mappings can then be accessed by calling
getCollectedSolutionMappings().-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears this sink by removing all solution mappings that have so far been collected in this sink.Returns an iterable over the solution mappings that have been collected in this sink since the last time it was cleared (by callingclear()) or, if it has not been cleared so far, since it was created.voidsend(SolutionMapping element)
-
Field Details
-
l
-
-
Constructor Details
-
CollectingIntermediateResultElementSink
public CollectingIntermediateResultElementSink()
-
-
Method Details
-
send
- Specified by:
sendin interfaceIntermediateResultElementSink
-
getCollectedSolutionMappings
Returns an iterable over the solution mappings that have been collected in this sink since the last time it was cleared (by callingclear()) or, if it has not been cleared so far, since it was created. -
clear
public void clear()Clears this sink by removing all solution mappings that have so far been collected in this sink.
-