public Iterator<RecordID> scan(){
  List<BEntry> validEntries=getAllValidEntries();
  List<RecordID> rids=new ArrayList<RecordID>();
  for (  BEntry le : validEntries) {
    rids.add(le.getRecordID());
  }
  return rids.iterator();
}

public Iterator < RecordID > scan ( ) { List < BEntry > validEntries = getAllValidEntries ( ) ; List < RecordID > rids = new ArrayList < RecordID > ( ) ; for ( BEntry le : validEntries ) { rids . add ( le . getRecordID ( ) ) ; } return rids . iterator ( ) ; }
creates an iterator of recordid ' s for all entries in this node .
