else
sources = config.getDataSources(1);
database = config.getDatabase(true);
for (DataSource src : sources) {
RecordIterator it = src.getRecords();
while (it.hasNext())
database.index(it.next());
}
database.commit();
// remember second set of records, too
if (!config.isDeduplicationMode() && active) {
// in record linkage mode we need to be able to look up records
// in the second group, so that we can show them to the user
// when asking questions about them
secondary = new HashMap();
for (DataSource src : config.getDataSources(2)) {
RecordIterator it = src.getRecords();
while (it.hasNext()) {
Record r = it.next();
secondary.put(getid(r), r);
}
}
}