Revision 7081
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/admin/upgrade/dataone/GenerateSystemMetadata.java | ||
---|---|---|
108 | 108 |
boolean test = false; |
109 | 109 |
if (test) { |
110 | 110 |
//idList = DBUtil.getAllDocidsByType(null, true, serverLocation); |
111 |
idList = DBUtil.getAllDocids("knb-lter-%"); // use a scope |
|
111 | 112 |
int limit = Math.min(idList.size(), 100); |
112 | 113 |
Collections.shuffle(idList); |
113 | 114 |
idList = idList.subList(0, limit); |
Also available in: Unified diff
use scope prefix (knb-lter-%) for random test doc population