Revision 3333
Added by Jing Tao over 17 years ago
src/edu/ucsb/nceas/metacat/DBQuery.java | ||
---|---|---|
477 | 477 |
boolean lastpage = false; |
478 | 478 |
int rev = 0; |
479 | 479 |
double startTime = 0; |
480 |
int offset = 1; |
|
480 |
//int offset = 1;
|
|
481 | 481 |
double startSelectionTime = System.currentTimeMillis()/1000; |
482 | 482 |
ResultSet rs = null; |
483 | 483 |
|
484 |
offset = 1; |
|
484 |
//offset = 1;
|
|
485 | 485 |
// this is a hack for offset |
486 |
if (out == null) |
|
486 |
/*if (out == null)
|
|
487 | 487 |
{ |
488 | 488 |
// for html page, we put everything into one page |
489 | 489 |
offset = |
... | ... | |
493 | 493 |
{ |
494 | 494 |
offset = |
495 | 495 |
(new Integer(MetaCatUtil.getOption("app_resultsetsize"))).intValue(); |
496 |
} |
|
496 |
}*/
|
|
497 | 497 |
|
498 | 498 |
/* |
499 | 499 |
* Check the docidOverride Vector |
... | ... | |
605 | 605 |
|
606 | 606 |
// when doclist reached the offset number, send out doc list and empty |
607 | 607 |
// the hash table |
608 |
if (count == offset && pagesize == 0) |
|
608 |
/*if (count == offset && pagesize == 0)
|
|
609 | 609 |
{ //if pagesize is not 0, do this later. |
610 | 610 |
//reset count |
611 | 611 |
//logMetacat.warn("############doing subset cache"); |
... | ... | |
614 | 614 |
user, groups,dbconn, useXMLIndex); |
615 | 615 |
//reset docListResult |
616 | 616 |
docListResult = new ResultDocumentSet(); |
617 |
} |
|
617 |
}*/
|
|
618 | 618 |
|
619 | 619 |
logMetacat.info("currentIndex: " + currentIndex); |
620 | 620 |
logMetacat.info("page comparator: " + (pagesize * pagestart) + pagesize); |
Also available in: Unified diff
Remove offset in findResultDoclist