Package org.apache.flink.runtime.shuffle
Interface ShuffleServiceFactory<SD extends ShuffleDescriptor,P extends ResultPartitionWriter,G extends IndexedInputGate>
- Type Parameters:
SD- partition shuffle descriptor used for producer/consumer deployment and their data exchange.P- type of provided result partition writersG- type of provided input gates
- All Known Implementing Classes:
NettyShuffleServiceFactory
public interface ShuffleServiceFactory<SD extends ShuffleDescriptor,P extends ResultPartitionWriter,G extends IndexedInputGate>
Interface for shuffle service factory implementations.
This component is a light-weight factory for ShuffleMaster and ShuffleEnvironment.
-
Method Summary
Modifier and TypeMethodDescriptioncreateShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext) Factory method to create a specific localShuffleEnvironmentimplementation.createShuffleMaster(ShuffleMasterContext shuffleMasterContext) Factory method to create a specificShuffleMasterimplementation.
-
Method Details
-
createShuffleMaster
Factory method to create a specificShuffleMasterimplementation.- Parameters:
shuffleMasterContext- shuffle context for shuffle master.- Returns:
- shuffle manager implementation
-
createShuffleEnvironment
ShuffleEnvironment<P,G> createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext) Factory method to create a specific localShuffleEnvironmentimplementation.- Parameters:
shuffleEnvironmentContext- local context- Returns:
- local shuffle service environment implementation
-