MultigetSliceIterator implements Iterator<Row<K, N, V>> { public String getHostsUsed() { String hostsUsed= new String(); StringBuilder strBldr = new StringBuilder(); Set<Entry<String,CassandraHost>> se= m_hostsUsed.entrySet(); for (Entry<String, CassandraHost> entry : se) { strBldr.append(entry.getValue().toString()); strBldr.append(';'); } if(se.size()>0 && strBldr.length()>0) { hostsUsed=strBldr.substring(0, strBldr.length()-1); } return hostsUsed; } MultigetSliceIterator(boolean reversed, Keyspace keyspace,
			Serializer<K> keySerializer, Serializer<N> nameSerializer,
			Serializer<V> valueSerializer, String columnFamily,
			List<K> rowKeys, N start, N finish);  MultigetSliceIterator(boolean reversed, Keyspace keyspace,
			Serializer<K> keySerializer, Serializer<N> nameSerializer,
			Serializer<V> valueSerializer, String columnFamily,
			List<K> rowKeys, N start, N finish, int maxColumnCountPerRow);  MultigetSliceIterator(boolean reversed, int maxRowCountPerQuery,
			Keyspace keyspace, Serializer<K> keySerializer,
			Serializer<N> nameSerializer, Serializer<V> valueSerializer,
			String columnFamily, List<K> rowKeys, N start, N finish,
			int maxColumnCountPerRow);  MultigetSliceIterator(boolean reversed, int maxRowCountPerQuery,
			Keyspace keyspace, Serializer<K> keySerializer,
			Serializer<N> nameSerializer, Serializer<V> valueSerializer,
			String columnFamily, List<K> rowKeys, N start, N finish);  MultigetSliceIterator(boolean reversed, Keyspace keyspace,
			Serializer<K> keySerializer, Serializer<N> nameSerializer,
			Serializer<V> valueSerializer, String columnFamily,
			List<K> rowKeys, N start, N finish, int maxThreadCount,
			int maxRowCountPerQuery, int maxColumnCountPerRow); @Override boolean hasNext(); @Override Row<K, N, V> next(); @Override void remove(); long getTotalExecutionTimeMicro(); long getTotalExecutionTimeNano(); String getHostsUsed(); int getThreadCountUsed(); int getRowCountPerQueryUsed();  }
@Test public void testGetHostsUsed() { LinkedList<String> KEYS= new LinkedList<String>(); for (int j = 0; j < 100; j++) { KEYS.add(KEY+j); } MultigetSliceIterator<String, UUID, String> it= new MultigetSliceIterator<String, UUID, String>(false,keyspace, se,us,se, CF, KEYS, null,null,1,10,10); Map<UUID, String> results = new HashMap<UUID, String>(); while (it.hasNext()) { Row<String,UUID, String> r = it.next(); for (HColumn<UUID, String> c : r.getColumnSlice().getColumns()) { results.put(c.getName(), c.getValue()); } } assertEquals("127.0.0.1(127.0.0.1):9170", it.getHostsUsed()); }