public class SpoutOutputCollectorImpl extends Object implements ISpoutOutputCollector
Methods are not thread safe. Each thread expected to have a separate instance, or else synchronize externally
Constructor and Description |
---|
SpoutOutputCollectorImpl(ISpout spout,
SpoutExecutor executor,
Task taskData,
MutableLong emittedCount,
boolean hasAckers,
Random random,
Boolean isEventLoggers,
Boolean isDebug,
RotatingMap<Long,TupleInfo> pending) |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
emit(String streamId,
List<Object> tuple,
Object messageId)
Returns the task ids that received the tuples.
|
void |
emitDirect(int taskId,
String streamId,
List<Object> tuple,
Object messageId) |
void |
flush() |
long |
getPendingCount() |
void |
reportError(Throwable error) |
public SpoutOutputCollectorImpl(ISpout spout, SpoutExecutor executor, Task taskData, MutableLong emittedCount, boolean hasAckers, Random random, Boolean isEventLoggers, Boolean isDebug, RotatingMap<Long,TupleInfo> pending)
public List<Integer> emit(String streamId, List<Object> tuple, Object messageId)
ISpoutOutputCollector
Returns the task ids that received the tuples.
emit
in interface ISpoutOutputCollector
public void emitDirect(int taskId, String streamId, List<Object> tuple, Object messageId)
emitDirect
in interface ISpoutOutputCollector
public void flush()
flush
in interface ISpoutOutputCollector
public long getPendingCount()
getPendingCount
in interface ISpoutOutputCollector
public void reportError(Throwable error)
reportError
in interface IErrorReporter
Copyright © 2020 The Apache Software Foundation. All rights reserved.