Package org.apache.druid.frame.channel
Class DurableStoragePartitionedReadableFrameChannel
- java.lang.Object
-
- org.apache.druid.frame.channel.DurableStoragePartitionedReadableFrameChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PartitionedReadableFrameChannel
public class DurableStoragePartitionedReadableFrameChannel extends Object implements PartitionedReadableFrameChannel
-
-
Constructor Summary
Constructors Constructor Description DurableStoragePartitionedReadableFrameChannel(StorageConnector storageConnector, Supplier<FrameFileFooter> frameFileFooterSupplier, String frameFileFullPath, ExecutorService remoteInputStreamPool, File footerFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Releases any resources associated with this readable channel.ReadableFrameChannel
getReadableFrameChannel(int partitionNumber)
Allows reading a particular partition in the channel
-
-
-
Constructor Detail
-
DurableStoragePartitionedReadableFrameChannel
public DurableStoragePartitionedReadableFrameChannel(StorageConnector storageConnector, Supplier<FrameFileFooter> frameFileFooterSupplier, String frameFileFullPath, ExecutorService remoteInputStreamPool, File footerFile)
-
-
Method Detail
-
getReadableFrameChannel
public ReadableFrameChannel getReadableFrameChannel(int partitionNumber)
Description copied from interface:PartitionedReadableFrameChannel
Allows reading a particular partition in the channel- Specified by:
getReadableFrameChannel
in interfacePartitionedReadableFrameChannel
- Parameters:
partitionNumber
- the partition to read- Returns:
- a ReadableFrameChannel for the partition queried
-
close
public void close()
Description copied from interface:PartitionedReadableFrameChannel
Releases any resources associated with this readable channel. After calling this, you should not call any other methods on the channel.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacePartitionedReadableFrameChannel
-
-