Changeset 22697


Ignore:
Timestamp:
03/09/10 13:00:14 (17 months ago)
Author:
mnw21
Message:

Hold onto batches to try and avoid them going missing from garbage collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/objectstore/main/src/org/intermine/objectstore/query/Results.java

    r22416 r22697  
    381381 
    382382        Object nextObject = null; 
     383        Object thisBatch, nextBatch; 
    383384 
    384385        public boolean hasNext() { 
     
    415416            } 
    416417            cursor++; 
     418            int currentBatchNo = getBatchNoForRow(cursor); 
     419            thisBatch = resultsBatches.batches.get(currentBatchNo); 
     420            nextBatch = resultsBatches.batches.get(currentBatchNo + 1); 
    417421            return retval; 
    418422        } 
Note: See TracChangeset for help on using the changeset viewer.