Search in sources :

Example 1 with IndexStats

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));
    }
}
Also used : DOMFile(org.exist.storage.dom.DOMFile) IndexStats(org.exist.storage.IndexStats) BFile(org.exist.storage.index.BFile)

Aggregations

IndexStats (org.exist.storage.IndexStats)1 DOMFile (org.exist.storage.dom.DOMFile)1 BFile (org.exist.storage.index.BFile)1