public class BaseOperation extends Object implements Operation
Operation
interface.
Provides no-op implementations of the `prepare()` and `cleanup()` methods.
Constructor and Description |
---|
BaseOperation() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
No-op implemnation.
|
void |
prepare(Map<String,Object> conf,
TridentOperationContext context)
No-op implementation.
|
public void prepare(Map<String,Object> conf, TridentOperationContext context)
prepare
in interface Operation
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
Copyright © 2023 The Apache Software Foundation. All rights reserved.