protected static class BaseStatefulBoltExecutor.AnchoringOutputCollector extends OutputCollector
Modifier and Type | Method and Description |
---|---|
List<Integer> |
emit(String streamId,
List<Object> tuple)
Emits a new unanchored tuple to the specified stream.
|
void |
emitDirect(int taskId,
String streamId,
List<Object> tuple)
Emits a tuple directly to the specified task id on the specified stream.
|
ack, emit, emit, emit, emit, emit, emitDirect, emitDirect, emitDirect, emitDirect, emitDirect, fail, flush, reportError, resetTimeout
public List<Integer> emit(String streamId, List<Object> tuple)
OutputCollector
emit
in class OutputCollector
streamId
- the stream to emit totuple
- the new output tuple from this boltpublic void emitDirect(int taskId, String streamId, List<Object> tuple)
OutputCollector
emitDirect
in class OutputCollector
taskId
- the taskId to send the new tuple tostreamId
- the stream to send the tuple on. It must be declared as a direct stream in the topology definition.tuple
- the new output tuple from this boltCopyright © 2023 The Apache Software Foundation. All rights reserved.