hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Writable readFields question
Date Sat, 24 Aug 2013 01:19:40 GMT
When you're encoding/write()-ing the writable, do you not know the
length? If you do, store the length first, and you can solve your
problem?

On Sat, Aug 24, 2013 at 3:58 AM, Ken Sullivan <sullivan@mayachitra.com> wrote:
> For my application I'm decoding data in readFields() of non-predetermined
> length.  I've found parsing for "4" (ASCII End Of Transmission) or "-1" tend
> to mark the end of the data stream.  Is this reliable, or is there a better
> way?
>
> Thanks,
> Ken



-- 
Harsh J

Mime
View raw message