Package org.apache.calcite.interpreter
Class Interpreter.DuplicatingSink
- java.lang.Object
-
- org.apache.calcite.interpreter.Interpreter.DuplicatingSink
-
- All Implemented Interfaces:
Sink
- Enclosing class:
- Interpreter
private static class Interpreter.DuplicatingSink extends java.lang.Object implements Sink
Implementation ofSink
using aArrayDeque
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DuplicatingSink(java.util.List<java.util.ArrayDeque<Row>> queues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end()
void
send(Row row)
void
setSourceEnumerable(Enumerable<Row> enumerable)
This method is temporary.
-
-
-
Field Detail
-
queues
private java.util.List<java.util.ArrayDeque<Row>> queues
-
-
Constructor Detail
-
DuplicatingSink
private DuplicatingSink(java.util.List<java.util.ArrayDeque<Row>> queues)
-
-
Method Detail
-
send
public void send(Row row) throws java.lang.InterruptedException
-
end
public void end() throws java.lang.InterruptedException
-
setSourceEnumerable
public void setSourceEnumerable(Enumerable<Row> enumerable) throws java.lang.InterruptedException
Description copied from interface:Sink
This method is temporary. It will be removed without notice.- Specified by:
setSourceEnumerable
in interfaceSink
- Throws:
java.lang.InterruptedException
-
-