@Override
public void consume(Tuple tuple)
{
if( this.array==null )
{
this.array = new Array(this.delimiter);
}
Object value = tuple.get(this.inputColumnName);
byte type = Tuple.getType(value);
if( type==Tuple.RESULT_WRAPPER_TYPE )
{
// result coming from Combiner
ResultWrapper wrapper = (ResultWrapper)value;
Array wrapped = (Array)wrapper.getCombinedResult();
for( Object elem:wrapped )
{
array.add(elem);
}
}