Java Code Examples for backtype.storm.tuple.Values#add()

The following examples show how to use backtype.storm.tuple.Values#add() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CountAggKeep.java    From first-stories-twitter with MIT License 5 votes vote down vote up
@Override
public void complete(State val, TridentCollector collector) {
	Values values = new Values();
	values.add(val.count);
	for (String field : keepFields)
		values.add(val.fields.get(field));
	
	collector.emit(values);
}