Package org.apache.druid.frame.processor
Interface OutputChannelFactory
-
- All Known Implementing Classes:
BlockingQueueOutputChannelFactory
,ComposingOutputChannelFactory
,FileOutputChannelFactory
public interface OutputChannelFactory
Factory for generating channel pairs for output data from processors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputChannel
openChannel(int partitionNumber)
Create a channel pair tagged with a particular partition number.OutputChannel
openNilChannel(int partitionNumber)
Create a non-writable, always-empty channel pair tagged with a particular partition number.PartitionedOutputChannel
openPartitionedChannel(String name, boolean deleteAfterRead)
Create a channel pair tagged with a particular name and a flag to delete the channel data after its read.
-
-
-
Method Detail
-
openChannel
OutputChannel openChannel(int partitionNumber) throws IOException
Create a channel pair tagged with a particular partition number.- Throws:
IOException
-
openPartitionedChannel
PartitionedOutputChannel openPartitionedChannel(String name, boolean deleteAfterRead) throws IOException
Create a channel pair tagged with a particular name and a flag to delete the channel data after its read.- Throws:
IOException
-
openNilChannel
OutputChannel openNilChannel(int partitionNumber)
Create a non-writable, always-empty channel pair tagged with a particular partition number. CallingOutputChannel.getWritableChannel()
on this nil channel pair will result in an error. CallingOutputChannel.getReadableChannel()
will return an empty channel.
-
-