public final void storeRecords(RecordCache otherCache) throws IOException {
  if (recordCount.get() <= maxRecords.get()) {
    RecordIterator recIter=otherCache.getRecords();
    try {
      byte[] record;
      while ((record=recIter.next()) != null && recordCount.incrementAndGet() <= maxRecords.get()) {
        storeRecordInternal(record);
      }
    }
  finally {
      recIter.close();
    }
  }
}

public final void storeRecords ( RecordCache otherCache ) throws IOException { if ( recordCount . get ( ) <= maxRecords . get ( ) ) { RecordIterator recIter = otherCache . getRecords ( ) ; try { byte [ ] record ; while ( ( record = recIter . next ( ) ) != null && recordCount . incrementAndGet ( ) <= maxRecords . get ( ) ) { storeRecordInternal ( record ) ; } } finally { recIter . close ( ) ; } } }
stores the records from the supplied cache into this cache .
