public static PRLoad createFromDataInput(DataInput in)
      throws IOException, ClassNotFoundException {
    float weight = in.readFloat();
    float[] bucketReadLoads = DataSerializer.readFloatArray(in);
    float[] bucketWriteLoads = DataSerializer.readFloatArray(in);
    return new PRLoad(weight, bucketReadLoads, bucketWriteLoads);
  }
Creates a new immutable instance of PRLoad from the provided DataInput. Actually
{@link #addBucket(int, float, float)} will allow the bucket loads to be mutated.

@param in the input stream to gather state from
@return new immutable instance of PRLoad
@throws IOException if DataSerializer failed to read object from input stream
@throws ClassNotFoundException if DataSerializer failed to find class to read object from input
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/PRLoad.java