code: public void write(DataOutput out) throws IOException {
      out.writeLong(version);
      Text.writeString(out, dir);
      out.writeLong(gen);
    }
docs: /* (non-Javadoc)
  @see org.apache.hadoop.io.Writable#write(java.io.DataOutput)