Hi,

The Pair object contains two getters which you can use to get the key and value.

pair.getLeft().toString()
pair.getRight().toString()

Would that suffice?

Brock

On Wed, Apr 4, 2012 at 3:36 AM, Ram Kumar <[email protected]> wrote:
> There is one issue which I would like to bring to your knowledge in MRUNIT.
> The Datatype 'Pair' return (key + ", " + value) in its toString() method.
> However this will not be desired format in all cases.
> Some cases we just need to have (key,value)  instead of (key, value)
> Notice the space between , and value. Should we provide feature to set such
> separators, rather than hardcoding it.
>
> --
> Thanks & Regards,
> M.A. Ram Kumar



-- 
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/

Reply via email to