public SourceType getTypeWritable() { return SourceType.values()[typeWritable.get()]; }
public void readFields(DataInput in) throws IOException { keyWritable.readFields(in); typeWritable.readFields(in); }
public void setTypeWritable(SourceType type) { typeWritable.set((byte) type.ordinal()); }
public void write(DataOutput out) throws IOException { keyWritable.write(out); typeWritable.write(out); }