public class WorkerDoneEvent extends IterationEventWithAggregators
IterationHead
to the IterationSynchronizationSinkTask
.NO_STRINGS, NO_VALUES
Constructor and Description |
---|
WorkerDoneEvent() |
WorkerDoneEvent(int workerIndex,
Map<String,Aggregator<?>> aggregators) |
WorkerDoneEvent(int workerIndex,
String aggregatorName,
Value aggregate) |
Modifier and Type | Method and Description |
---|---|
int |
getWorkerIndex() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
getAggregates, getAggregatorNames
public WorkerDoneEvent()
public WorkerDoneEvent(int workerIndex, Map<String,Aggregator<?>> aggregators)
public int getWorkerIndex()
public void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
write
in class IterationEventWithAggregators
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
read
in interface IOReadableWritable
read
in class IterationEventWithAggregators
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streamCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.