private void init() {
    iter = data.iterator();
    if (iter.hasNext()) {
      current = iter.next();
    }
  }
Utility scanner that wraps a sortable collection and serves as a KeyValueScanner.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/CollectionBackedScanner.java