Package org.apache.storm.executor.bolt
Class BoltOutputCollectorImpl
- java.lang.Object
-
- org.apache.storm.executor.bolt.BoltOutputCollectorImpl
-
- All Implemented Interfaces:
IErrorReporter
,IOutputCollector
public class BoltOutputCollectorImpl extends Object implements IOutputCollector
-
-
Constructor Summary
Constructors Constructor Description BoltOutputCollectorImpl(BoltExecutor executor, Task taskData, Random random, boolean isEventLoggers, boolean ackingEnabled, boolean isDebug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ack(Tuple input)
List<Integer>
emit(String streamId, Collection<Tuple> anchors, List<Object> tuple)
Returns the task ids that received the tuples.void
emitDirect(int taskId, String streamId, Collection<Tuple> anchors, List<Object> tuple)
void
fail(Tuple input)
void
flush()
void
reportError(Throwable error)
void
resetTimeout(Tuple input)
-
-
-
Constructor Detail
-
BoltOutputCollectorImpl
public BoltOutputCollectorImpl(BoltExecutor executor, Task taskData, Random random, boolean isEventLoggers, boolean ackingEnabled, boolean isDebug)
-
-
Method Detail
-
emit
public List<Integer> emit(String streamId, Collection<Tuple> anchors, List<Object> tuple)
Description copied from interface:IOutputCollector
Returns the task ids that received the tuples.- Specified by:
emit
in interfaceIOutputCollector
-
emitDirect
public void emitDirect(int taskId, String streamId, Collection<Tuple> anchors, List<Object> tuple)
- Specified by:
emitDirect
in interfaceIOutputCollector
-
ack
public void ack(Tuple input)
- Specified by:
ack
in interfaceIOutputCollector
-
fail
public void fail(Tuple input)
- Specified by:
fail
in interfaceIOutputCollector
-
resetTimeout
public void resetTimeout(Tuple input)
- Specified by:
resetTimeout
in interfaceIOutputCollector
-
flush
public void flush()
- Specified by:
flush
in interfaceIOutputCollector
-
reportError
public void reportError(Throwable error)
- Specified by:
reportError
in interfaceIErrorReporter
-
-