public static BatchDeletePartitionResponseInfo readFrom(DataInputStream stream, ClusterMap clusterMap)
      throws IOException {
    int messageCount = stream.readInt();
    PartitionId partitionId = clusterMap.getPartitionIdFromStream(stream);
    ArrayList<BlobDeleteStatus> blobDeleteStatuses = new ArrayList<>(messageCount);
    for (int i = 0; i < messageCount; i++) {
      BlobDeleteStatus deleteStatus = BlobDeleteStatus.readFrom(stream, clusterMap);
      blobDeleteStatuses.add(deleteStatus);
    }
    return new BatchDeletePartitionResponseInfo(partitionId, blobDeleteStatuses);
  }
Reads from a stream and constructs a {@link BatchDeletePartitionResponseInfo}.
@param stream the {@link DataInputStream} to read from
@param clusterMap the {@link ClusterMap} to use
@return the constructed {@link BatchDeletePartitionResponseInfo}
@throws IOException
ambry-protocol/src/main/java/com/github/ambry/protocol/BatchDeletePartitionResponseInfo.java