Class SynchronizedIntermediateResultElementSink
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.SynchronizedIntermediateResultElementSink
- All Implemented Interfaces:
ClosableIntermediateResultElementSink
,IntermediateResultElementSink
public class SynchronizedIntermediateResultElementSink
extends Object
implements ClosableIntermediateResultElementSink
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this sink.boolean
isClosed()
Returns true if this sink has been closed.void
send
(SolutionMapping element) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.liu.ida.hefquin.engine.queryplan.executable.IntermediateResultElementSink
send, send
-
Field Details
-
currentElement
-
closed
protected boolean closed
-
-
Constructor Details
-
SynchronizedIntermediateResultElementSink
public SynchronizedIntermediateResultElementSink()
-
-
Method Details
-
send
- Specified by:
send
in interfaceIntermediateResultElementSink
-
close
public void close()Description copied from interface:ClosableIntermediateResultElementSink
Closes this sink. Further calls ofinvalid reference
#send(Object)
- Specified by:
close
in interfaceClosableIntermediateResultElementSink
-
isClosed
public boolean isClosed()Description copied from interface:ClosableIntermediateResultElementSink
Returns true if this sink has been closed.- Specified by:
isClosed
in interfaceClosableIntermediateResultElementSink
-
getNextElement
-