Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> Re: PriorityQueueWritable

Copy link to this message
Re: PriorityQueueWritable
Hello Aseem,

I'm aware of nothing in Hadoop or related projects that provides a
PriorityQueueWritable.  You could achieve this by taking some existing
priority queue class and subclassing it or wrapping it to implement the
Writable.write and Writable.readFields methods.

If you could give us some additional context around what you want to solve,
then we might be able to offer some other suggestions.  For example,
depending on the problem, maybe you could sort values and wrap them in
ArrayWritable (which already exists), which would save you the trouble of
coding your own custom Writable.

Thank you,

On Mon, Oct 15, 2012 at 9:56 AM, Aseem Anand <[EMAIL PROTECTED]> wrote:

> Hi,
> Is anyone familiar with a PriorityQueueWritable to be used to pass data
> from mapper to reducers ?
> Regards,
> Aseem
Aseem Anand 2012-10-15, 18:07