Class TieredStorageConsumerClient
java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage.TieredStorageConsumerClient
TieredStorageConsumerClient is used to read buffer from tiered store.-
Constructor Summary
ConstructorsConstructorDescriptionTieredStorageConsumerClient(List<TierFactory> tierFactories, List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<List<TierShuffleDescriptor>> tierShuffleDescriptors, TieredStorageNettyService nettyService) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId) intpeekNextBufferSubpartitionId(TieredStoragePartitionId partitionId, ResultSubpartitionIndexSet indexSet) Returns the index of the subpartition where the next buffer locates, or -1 if there is no buffer available or the subpartition index does not belong to the specified indexSet.voidvoidsetup(BufferPool bufferPool) voidstart()voidupdateTierShuffleDescriptors(TieredStoragePartitionId partitionId, TieredStorageInputChannelId inputChannelId, TieredStorageSubpartitionId subpartitionId, List<TierShuffleDescriptor> tierShuffleDescriptors)
-
Constructor Details
-
TieredStorageConsumerClient
public TieredStorageConsumerClient(List<TierFactory> tierFactories, List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<List<TierShuffleDescriptor>> tierShuffleDescriptors, TieredStorageNettyService nettyService)
-
-
Method Details
-
setup
-
start
public void start() -
peekNextBufferSubpartitionId
public int peekNextBufferSubpartitionId(TieredStoragePartitionId partitionId, ResultSubpartitionIndexSet indexSet) throws IOException Returns the index of the subpartition where the next buffer locates, or -1 if there is no buffer available or the subpartition index does not belong to the specified indexSet.- Parameters:
partitionId- The index of the partition which the returned subpartition should belong to.indexSet- The indexes of the subpartitions expected.- Throws:
IOException
-
getNextBuffer
public Optional<Buffer> getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId) throws IOException - Throws:
IOException
-
registerAvailabilityNotifier
-
updateTierShuffleDescriptors
public void updateTierShuffleDescriptors(TieredStoragePartitionId partitionId, TieredStorageInputChannelId inputChannelId, TieredStorageSubpartitionId subpartitionId, List<TierShuffleDescriptor> tierShuffleDescriptors) -
close
- Throws:
IOException
-