Project

General

Profile

« Previous | Next » 

Revision 5369

Added by berkley almost 14 years ago

added some params to the loop that segments the listObjects resultset

View differences:

CrudService.java
356 356
                  sessionData.getGroupNames(), sessionData.getId());
357 357
          List docs = rs.getDocuments();
358 358
          
359
          for(int i=0; i<docs.size(); i++)
359
          if(count == 1000)
360 360
          {
361
              count = docs.size();
362
          }
363
          for(int i=start; i<count; i++)
364
          {
361 365
              //get the document from the results
362 366
              Document d = (Document)docs.get(i);
363 367
              ObjectFormat returnedObjectFormat = ObjectFormat.convert(d.getField("objectFormat"));
......
397 401
              info.setSize(new Long(d.getField("size").trim()).longValue());
398 402
              //add the ObjectInfo to the ObjectList
399 403
              ol.addObjectInfo(info);
400
              
401 404
              //System.out.println(d.toString());
402 405
          }
403
          
404
          //do an squery on metacat to return systemMetadata docs where 
405
          //sm.dateSysMetadataModified >= startTime
406
          //sm.dateSysMetadataModified <= endTime
407
          //further slice the returned dataset if replicaStatus is false.
408
          //if start != 0, return only the documents with index >= start
409
          //if the number of results is > count, return the first count docs
410 406
      }
411 407
      catch(Exception e)
412 408
      {

Also available in: Unified diff