Package org.apache.druid.frame.processor
Class FileOutputChannelFactory
- java.lang.Object
-
- org.apache.druid.frame.processor.FileOutputChannelFactory
-
- All Implemented Interfaces:
OutputChannelFactory
public class FileOutputChannelFactory extends Object implements OutputChannelFactory
-
-
Constructor Summary
Constructors Constructor Description FileOutputChannelFactory(File fileChannelsDirectory, int frameSize, ByteTracker byteTracker)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
FileOutputChannelFactory
public FileOutputChannelFactory(File fileChannelsDirectory, int frameSize, @Nullable ByteTracker byteTracker)
-
-
Method Detail
-
openChannel
public OutputChannel openChannel(int partitionNumber) throws IOException
Description copied from interface:OutputChannelFactoryCreate a channel pair tagged with a particular partition number.- Specified by:
openChannelin interfaceOutputChannelFactory- Throws:
IOException
-
openPartitionedChannel
public PartitionedOutputChannel openPartitionedChannel(String name, boolean deleteAfterRead) throws IOException
Description copied from interface:OutputChannelFactoryCreate a channel pair tagged with a particular name and a flag to delete the channel data after its read.- Specified by:
openPartitionedChannelin interfaceOutputChannelFactory- Throws:
IOException
-
openNilChannel
public OutputChannel openNilChannel(int partitionNumber)
Description copied from interface:OutputChannelFactoryCreate 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.- Specified by:
openNilChannelin interfaceOutputChannelFactory
-
-