public class FlatMapFunctionExecutor extends BaseOperation implements Function
Constructor and Description |
---|
FlatMapFunctionExecutor(FlatMapFunction 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 FlatMapFunctionExecutor(FlatMapFunction 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.