how to emit and collect an arraylist in storm?

Viewed 1194

I have an arrayList that I want to emit and receive it in another bolt. So as suggested on another post here I used: the first bolt:

collector.emit(new Values(listI));

the next bolt:

public void execute(Tuple tuple) {
ArrayList<Integer> i = (ArrayList<Integer>)tuple.getValue(0);
....
}

but instead of a size 4 list, I am getting a list with size 0. Any thoughts?

1 Answers
Related