code: public LogIterator getIterator() {
          Set<Entry<LogKey, LogValue>> entries = mCache.asMap().entrySet();
          for (Entry<LogKey, LogValue> entry : entries) {
              insertIntoBDB(entry.getKey(), entry.getValue());
          }
  
          return new LogIterator();
      }
docs: Returning all elements as Iterator.
  
  @return new LogIterator-instance