query/src/test/java/org/infinispan/query/dsl/embedded/IckleFilterAndConverterDistTest.java
/**
    * Iterates over all the entries provided by the iterator and puts them in a Map.
    */
Iterates over all the entries provided by the iterator and puts them in a Map.
Iterates over all the entries provided by the iterator and puts them in a Map .
private Map<Object, ObjectFilter.FilterResult> mapFromIterator(CloseableIterator<Map.Entry<Object, ObjectFilter.FilterResult>> iterator) {
      try {
         Map<Object, ObjectFilter.FilterResult> result = new HashMap<>();
         while (iterator.hasNext()) {
            Map.Entry<Object, ObjectFilter.FilterResult> entry = iterator.next();
            result.put(entry.getKey(), entry.getValue());
         }
         return result;
      } finally {
         iterator.close();
      }
   }
private Map < Object , ObjectFilter . FilterResult > mapFromIterator ( CloseableIterator < Map . Entry < Object , ObjectFilter . FilterResult > > iterator ) { try { Map < Object , ObjectFilter . FilterResult > result = new HashMap < > ( ) ; while ( iterator . hasNext ( ) ) { Map . Entry < Object , ObjectFilter . FilterResult > entry = iterator . next ( ) ; result . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } return result ; } finally { iterator . close ( ) ; } }
Iterates over all the entries provided by the iterator and puts them in a Map.
Iterates over all the entries provided by the iterator and puts them in a Map .