* @param secondReference
* the second reference
*/
private void iterateAllDocuments(final Database db, final Set<Document> secondReference) {
System.out.println("Thread " + Thread.currentThread().getName() + " BEGINNING ITERATION of Documents");
Session s = db.getParent();
DocumentCollection dc = db.getAllDocuments();
for (Document doc : dc) {
docCount++;
Vector v = doc.getItemValue("$UpdatedBy");
for (Object o : v) {
if (o instanceof String) {
Name n = s.createName((String) o);
String cn = n.getCommon();
nameCount++;
}
}
if (docCount % 1000 == 0) {
secondReference.add(db.getDocumentByID(doc.getNoteID()));
}
if (docCount % 2000 == 0) {
thirdReference.add(doc);
}
DateTime toxic = doc.getLastModified();
String busyWork = toxic.getGMTTime();
DateTime toxic2 = doc.getLastModified();
String busyWork2 = toxic2.getDateOnly();
// System.out.println("LastMod: " + toxic.getGMTTime());
dateCount++;
}
System.out.println("REPEATING ITERATION of Documents");
for (Document doc : dc) {
docCount++;
Vector v = doc.getItemValue("$UpdatedBy");
for (Object o : v) {
if (o instanceof String) {
Name n = s.createName((String) o);
String cn = n.getCommon();
nameCount++;
}
}
if (docCount % 1000 == 0) {