use of org.exist.storage.IndexStats in project exist by eXist-db.
the class Statistics method generateIndexStatistics.
/**
* Generate index statistics.
*
* @param conf the configuration
* @param indexStats the index stats
*/
public static void generateIndexStatistics(Configuration conf, Map<String, IndexStats> indexStats) {
final DOMFile dom = (DOMFile) conf.getProperty(DOMFile.CONFIG_KEY_FOR_FILE);
if (dom != null) {
indexStats.put(DOMFile.FILE_NAME, new IndexStats(dom));
}
BFile db = (BFile) conf.getProperty(CollectionStore.FILE_KEY_IN_CONFIG);
if (db != null) {
indexStats.put(CollectionStore.FILE_NAME, new IndexStats(db));
}
db = (BFile) conf.getProperty(NativeValueIndex.FILE_KEY_IN_CONFIG);
if (db != null) {
indexStats.put(NativeValueIndex.FILE_NAME, new IndexStats(db));
}
}
Aggregations