@Override public void ack(Tuple input) { TupleImpl i = (TupleImpl) input; delegate.ack(i.getDelegate()); }
@Override public void fail(Tuple input) { TupleImpl i = (TupleImpl) input; delegate.fail(i.getDelegate()); }
@Override public void emitDirect( int taskId, String streamId, Collection<Tuple> anchors, List<Object> tuple) { if (anchors != null) { ArrayList<com.twitter.heron.api.tuple.Tuple> l = new ArrayList<com.twitter.heron.api.tuple.Tuple>(); for (Tuple t : anchors) { TupleImpl i = (TupleImpl) t; l.add(i.getDelegate()); } delegate.emitDirect(taskId, streamId, l, tuple); } else { delegate.emitDirect( taskId, streamId, (Collection<com.twitter.heron.api.tuple.Tuple>) null, tuple); } }
@Override public List<Integer> emit(String streamId, Collection<Tuple> anchors, List<Object> tuple) { if (anchors != null) { ArrayList<com.twitter.heron.api.tuple.Tuple> l = new ArrayList<com.twitter.heron.api.tuple.Tuple>(); for (Tuple t : anchors) { TupleImpl i = (TupleImpl) t; l.add(i.getDelegate()); } return delegate.emit(streamId, l, tuple); } else { return delegate.emit(streamId, (Collection<com.twitter.heron.api.tuple.Tuple>) null, tuple); } }