public class OutputCollector extends java.lang.Object implements IOutputCollector
Constructor and Description |
---|
OutputCollector(IOutputCollector listener) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Tuple input) |
java.util.List<java.lang.Integer> |
emit(java.lang.String streamId,
java.util.Collection<Tuple> anchors,
java.util.List<java.lang.Object> tuple)
Returns the task ids that received the tuples.
|
java.util.List<java.lang.Integer> |
emit(java.lang.String streamId,
java.util.List<java.lang.Object> tuple) |
java.util.List<java.lang.Integer> |
emit(java.lang.String streamId,
Tuple anchor,
java.util.List<java.lang.Object> tuple)
Emits a new tuple to a specific stream with a single anchor.
|
void |
emitDirect(int taskId,
java.lang.String streamId,
java.util.Collection<Tuple> anchors,
java.util.List<java.lang.Object> tuple) |
void |
emitDirect(int taskId,
java.lang.String streamId,
java.util.List<java.lang.Object> tuple) |
void |
fail(Tuple input) |
void |
reportError(java.lang.Throwable error) |
public OutputCollector(IOutputCollector listener)
public java.util.List<java.lang.Integer> emit(java.lang.String streamId, java.util.Collection<Tuple> anchors, java.util.List<java.lang.Object> tuple)
IOutputCollector
emit
in interface IOutputCollector
public java.util.List<java.lang.Integer> emit(java.lang.String streamId, Tuple anchor, java.util.List<java.lang.Object> tuple)
streamId
- the stream to emit toanchor
- the tuple to anchor totuple
- the new output tuple from this boltpublic java.util.List<java.lang.Integer> emit(java.lang.String streamId, java.util.List<java.lang.Object> tuple)
public void emitDirect(int taskId, java.lang.String streamId, java.util.Collection<Tuple> anchors, java.util.List<java.lang.Object> tuple)
emitDirect
in interface IOutputCollector
public void emitDirect(int taskId, java.lang.String streamId, java.util.List<java.lang.Object> tuple)
public void ack(Tuple input)
ack
in interface IOutputCollector
public void fail(Tuple input)
fail
in interface IOutputCollector
public void reportError(java.lang.Throwable error)
reportError
in interface IErrorReporter