code: static Map<String, Iterable<Comparable>> fetchTokens(String query, final Pair<Session, String> sessionWithHost,
                                                           IPartitioner partitioner) {
  
          ResultSet rSet = sessionWithHost.left.execute(query);
  
          final AbstractType tkValidator = partitioner.getTokenValidator();
          final Map<String, Iterable<Comparable>> tokens = Maps.newHashMap();
  
          Iterable<Pair<String, Iterable<Comparable>>> pairs =
                  transform(rSet.all(), new FetchTokensRowPairFunction(sessionWithHost, tkValidator));
  
          for (Pair<String, Iterable<Comparable>> pair : pairs) {
              tokens.put(pair.left, pair.right);
          }
  
          return tokens;
      }
docs: Gets the list of token for each cluster machine.<br/>
  The concrete class of the token depends on the partitioner used.<br/>
  
  @param query           the query to execute against the given session to obtain the list of tokens.
  @param sessionWithHost the pair object containing both the session and the name of the machine to which we're connected to.
  @param partitioner     the partitioner used in the cluster.
  @return a map containing, for each cluster machine, the list of tokens. Tokens are not returned in any particular
  order.