/** * Get the host->host links: */ public List<String> getHostLinks() { SolrInputField links = getField(SolrFields.SOLR_LINKS_HOSTS); if (links == null || links.getValueCount() == 0) return null; // Otherwise, build a list: List<String> hl = new ArrayList<String>(); for (Object v : links.getValues()) { hl.add(getHost() + "\t" + (String) v); } return hl; } }
new Text(s.getHost()));