public static BatchDeletePartitionRequestInfo readFrom(DataInputStream stream, ClusterMap clusterMap)
      throws IOException {
    int blobCount = stream.readInt();
    List<BlobId> blobIds = new ArrayList<>(blobCount);
    PartitionId partitionId = null;
    for (int i = 0; i < blobCount; i++) {
      BlobId blobId = new BlobId(stream, clusterMap);
      if (partitionId == null) {
        partitionId = blobId.getPartition();
      }
      blobIds.add(blobId);
    }
    return new BatchDeletePartitionRequestInfo(partitionId, blobIds);
  }
Reads from a stream and constructs a {@link BatchDeletePartitionRequestInfo}.
@param stream the {@link DataInputStream} to read from
@param clusterMap the {@link ClusterMap} to use
@return the constructed {@link BatchDeletePartitionRequestInfo}
@throws IOException
ambry-protocol/src/main/java/com/github/ambry/protocol/BatchDeletePartitionRequestInfo.java