public List<Integer> emitByDelegate(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { return delegate.emit(streamId, tuple, null, callback); }
public List<Integer> emit(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { return _delegate.emit(streamId, tuple, messageId, callback); }
/** * Emits a new tuple to the specified output stream with the given message * ID. When Storm detects that this tuple has been fully processed, or has * failed to be fully processed, the spout will receive an ack or fail * callback respectively with the messageId as long as the messageId was not * null. If the messageId was null, Storm will not track the tuple and no * callback will be received. The emitted values must be immutable. * * @return the list of task ids that this tuple was sent to */ public List<Integer> emit(String streamId, List<Object> tuple, Object messageId) { return _delegate.emit(streamId, tuple, messageId); }
@Override public List<Integer> emit(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { delegate.emit(streamId, tuple, null, (callback != null) ? callback : new CollectorCallback()); return null; }
@Override public List<Integer> emit(String streamId, List<Object> tuple, Object messageId) { if (messageId != null) { addPendingTuple(currBatchId, streamId, messageId, tuple); tuple.add(Utils.generateId(random)); } else { // for non-anchor tuples, use 0 as default rootId tuple.add(0l); } return delegate.emit(streamId, tuple, null); }
@Override public List<Integer> emit(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { if (messageId != null) { addPendingTuple(currBatchId, streamId, messageId, tuple); tuple.add(Utils.generateId(random)); } else { // for non-anchor tuples, use 0 as default rootId tuple.add(0l); } return delegate.emit(streamId, tuple, null, callback); }
public List<Integer> emit(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { return _delegate.emit(streamId, tuple, messageId, callback); }
public List<Integer> emitByDelegate(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { return delegate.emit(streamId, tuple, messageId, callback); }
/** * Emits a new tuple to the specified output stream with the given message * ID. When Storm detects that this tuple has been fully processed, or has * failed to be fully processed, the spout will receive an ack or fail * callback respectively with the messageId as long as the messageId was not * null. If the messageId was null, Storm will not track the tuple and no * callback will be received. The emitted values must be immutable. * * @return the list of task ids that this tuple was sent to */ public List<Integer> emit(String streamId, List<Object> tuple, Object messageId) { return _delegate.emit(streamId, tuple, messageId); }
@Override public List<Integer> emit(String streamId, List<Object> tuple, Object messageId, ICollectorCallback callback) { try { //waitActive(); lock.readLock().lock(); List<Object> tupleWithId = new ArrayList<Object>(); tupleWithId.add(new BatchGroupId(groupId, currBatchId)); tupleWithId.addAll(tuple); delegate.emit(streamId, tupleWithId, null, (callback != null) ? callback : new CollectorCallback()); //currBatchInfo.endPos = messageId; } finally { lock.readLock().unlock(); } return null; }