public class MapFunctionExecutor extends BaseOperation implements Function
Constructor and Description |
---|
MapFunctionExecutor(MapFunction function) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
No-op implemnation.
|
void |
execute(TridentTuple tuple,
TridentCollector collector)
Performs the function logic on an individual tuple and emits 0 or more tuples.
|
void |
prepare(Map conf,
TridentOperationContext context)
No-op implementation.
|
public MapFunctionExecutor(MapFunction function)
public void prepare(Map conf, TridentOperationContext context)
BaseOperation
No-op implementation.
prepare
in interface Operation
prepare
in class BaseOperation
conf
- the Storm configuration mapcontext
- the operation context which provides information such as the number of partitions in the stream, and the current partition index. It also provides methods for registering operation-specific metrics.TridentOperationContext
public void cleanup()
BaseOperation
No-op implemnation.
cleanup
in interface Operation
cleanup
in class BaseOperation
public void execute(TridentTuple tuple, TridentCollector collector)
Function
Performs the function logic on an individual tuple and emits 0 or more tuples.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.