out.writeUTF(key.region.toString());
UsageType.serialize(out, key.usageType);
}
public static Key deserialize(DataInput in) throws IOException {
Region region = Region.getRegionByName(in.readUTF());
UsageType usageType = UsageType.deserialize(in);
return new Key(region, usageType);
}