Package org.apache.druid.frame.processor
Interface OutputChannelFactory
-
- All Known Implementing Classes:
BlockingQueueOutputChannelFactory,ComposingOutputChannelFactory,FileOutputChannelFactory
public interface OutputChannelFactoryFactory for generating channel pairs for output data from processors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputChannelopenChannel(int partitionNumber)Create a channel pair tagged with a particular partition number.OutputChannelopenNilChannel(int partitionNumber)Create a non-writable, always-empty channel pair tagged with a particular partition number.PartitionedOutputChannelopenPartitionedChannel(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.
-
-