public class ConsumableNotifyingResultPartitionWriterDecorator extends Object
ResultPartitionWriter
for that sends a "consumable" notification on
the first record.
Note: This is only needed for lazy batch scheduling and thus an artifact that can be removed once we drop lazy-from-sources scheduling.
Modifier and Type | Method and Description |
---|---|
static ResultPartitionWriter[] |
decorate(Collection<ResultPartitionDeploymentDescriptor> descs,
ResultPartitionWriter[] partitionWriters,
TaskActions taskActions,
JobID jobId,
ResultPartitionConsumableNotifier notifier)
Optionally decorate the ResultPartitionWriter to call
ResultPartitionConsumableNotifier.notifyPartitionConsumable(JobID, ResultPartitionID,
TaskActions) on the first record, iff ResultPartitionDeploymentDescriptor.sendScheduleOrUpdateConsumersMessage() is true. |
public static ResultPartitionWriter[] decorate(Collection<ResultPartitionDeploymentDescriptor> descs, ResultPartitionWriter[] partitionWriters, TaskActions taskActions, JobID jobId, ResultPartitionConsumableNotifier notifier)
ResultPartitionConsumableNotifier.notifyPartitionConsumable(JobID, ResultPartitionID,
TaskActions)
on the first record, iff ResultPartitionDeploymentDescriptor.sendScheduleOrUpdateConsumersMessage()
is true.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.