public static Scan convertStringToScan(String base64) throws IOException {
    byte[] decoded = Base64.getDecoder().decode(base64);
    return ProtobufUtil.toScan(ClientProtos.Scan.parseFrom(decoded));
  }
Converts the given Base64 string back into a Scan instance.
@param base64 The scan details.
@return The newly created Scan instance.
@throws IOException When reading the scan instance fails.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java