if (btreeIndexes == null) throw new IllegalArgumentException("index configurations can not be null");
final List indexes = new ArrayList();
for (Iterator it = btreeIndexes.iterator(); it.hasNext();) {
final IndexDefinition indexDef = (IndexDefinition)it.next();
final String jispIndexType = getJispIndexType(indexDef.getType());
ObjectFactory factory = new DefaultObjectFactory(jispIndexType);
final StringBuffer indexFile = new StringBuffer();
indexFile.append(m_indexDir);
indexFile.append(File.separator);
indexFile.append(indexDef.getName());
File killit = new File(indexFile.toString());
if (killit.exists()) killit.delete();
final BTreeIndex index = new BTreeIndex(
indexFile.toString(),
INDEX_ORDER,
(KeyObject)factory.newInstance(),
false, m_loader);
indexes.add(index);
m_jispIndexes.put(indexDef.getName(), index);
final Class indexType = m_loader.loadClass(
getJispIndexType(indexDef.getType()));
m_jispIndexTypes.put(indexDef.getName(), indexType);
}
return indexes;
}