hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z3r0c001 <ceo.co...@gmail.com>
Subject Fwd: help with Hadoop custom Writable types implementation
Date Thu, 15 Oct 2009 04:01:01 GMT
I'm trying to implement Writable interface. but not sure how to
serialize/write/read data from nested objects in

public class StorageClass implements Writable{

public String xStr;
public String yStr;

public List<SubStorage> sStor

//omitted ctors

public void write(DataOutput out) throws IOException{

    //WHAT SHOULD I DO FOR List<SubStorage>


public void readFields(DataInput in) throws IOException{
    xStr = in.readLine();
    yStr = in.readLine();

    //WHAT SHOULD I DO FOR List<SubStorage>


public class SubStorage{
    public String x;
    public String y;

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message