public class KeplerReduceStub extends eu.stratosphere.api.java.record.functions.ReduceFunction implements ExecutionListener
Constructor and Description |
---|
KeplerReduceStub() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Free resources.
|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report workflow execution errors to the log.
|
void |
executionFinished(Manager manager)
Do nothing.
|
void |
managerStateChanged(Manager manager)
Do nothing.
|
void |
open(eu.stratosphere.configuration.Configuration parameters)
Configure the stub by loading the workflow and setting the PACT data
types from the workflow stub actors.
|
void |
reduce(java.util.Iterator<eu.stratosphere.types.Record> records,
eu.stratosphere.util.Collector<eu.stratosphere.types.Record> out)
Transfer the data from Stratosphere to Kepler, execute the workflow,
and then transfer the data from Kepler to Stratosphere.
|
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
public KeplerReduceStub()
public void close() throws java.lang.Exception
close
in interface eu.stratosphere.api.common.functions.Function
close
in class eu.stratosphere.api.common.functions.AbstractFunction
java.lang.Exception
public void open(eu.stratosphere.configuration.Configuration parameters) throws java.lang.Exception
open
in interface eu.stratosphere.api.common.functions.Function
open
in class eu.stratosphere.api.common.functions.AbstractFunction
java.lang.Exception
public void reduce(java.util.Iterator<eu.stratosphere.types.Record> records, eu.stratosphere.util.Collector<eu.stratosphere.types.Record> out) throws java.lang.Exception
reduce
in interface eu.stratosphere.api.common.functions.GenericReducer<eu.stratosphere.types.Record,eu.stratosphere.types.Record>
reduce
in class eu.stratosphere.api.java.record.functions.ReduceFunction
java.lang.Exception
public void executionError(Manager manager, java.lang.Throwable throwable)
executionError
in interface ExecutionListener
manager
- The manager controlling the execution.throwable
- The throwable to report.public void executionFinished(Manager manager)
executionFinished
in interface ExecutionListener
manager
- The manager controlling the execution.public void managerStateChanged(Manager manager)
managerStateChanged
in interface ExecutionListener
manager
- The manager controlling the execution.Manager.getState()