@Override
  public void clear() {
    mapClear();// this.map.clear();
    numNulls = 0;
    size = 0;
    if (hasLimitIterator) {
      synchronized (limitLock) {
        limit = 0;
      }
    }
  }
Return an iterator over the elements in this collection. Duplicates will show up the number of
times it has occurrences.
geode-core/src/main/java/org/apache/geode/cache/query/internal/Bag.java