code: public static Collection<DisqueNode> parse(String nodes) {
          List<DisqueNode> result = new ArrayList<>();
  
          Iterator<String> iterator = TOKEN_PATTERN.splitAsStream(nodes).iterator();
  
          try {
              while (iterator.hasNext()) {
                  String node = iterator.next();
                  DisqueNode partition = parseNode(node);
                  result.add(partition);
              }
  
          } catch (Exception e) {
              throw new RedisException("Cannot parse " + nodes, e);
          }
  
          return result;
      }
docs: Parse partition lines into Partitions object.
  
  @param nodes output of CLUSTER NODES
  @return the partitions object.