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
ConstructorsConstructorDescriptionDurableStoragePartitionedReadableFrameChannel(StorageConnector storageConnector, Supplier<FrameFileFooter> frameFileFooterSupplier, String frameFileFullPath, ExecutorService remoteInputStreamPool, File footerFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases any resources associated with this readable channel.getReadableFrameChannel(int partitionNumber) Allows reading a particular partition in the channel
-
Constructor Details
-
DurableStoragePartitionedReadableFrameChannel
public DurableStoragePartitionedReadableFrameChannel(StorageConnector storageConnector, Supplier<FrameFileFooter> frameFileFooterSupplier, String frameFileFullPath, ExecutorService remoteInputStreamPool, File footerFile)
-
-
Method Details
-
getReadableFrameChannel
Description copied from interface:PartitionedReadableFrameChannelAllows reading a particular partition in the channel- Specified by:
getReadableFrameChannelin interfacePartitionedReadableFrameChannel- Parameters:
partitionNumber- the partition to read- Returns:
- a ReadableFrameChannel for the partition queried
-
close
public void close()Description copied from interface:PartitionedReadableFrameChannelReleases any resources associated with this readable channel. After calling this, you should not call any other methods on the channel.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacePartitionedReadableFrameChannel
-