code: public void readFields(DataInput in) throws IOException {
      version = in.readLong();
      dir = Text.readString(in);
      gen = in.readLong();
    }
docs: /* (non-Javadoc)
  @see org.apache.hadoop.io.Writable#readFields(java.io.DataInput)