Search in sources :

Example 1 with Level

use of org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.Level in project jackrabbit-oak by apache.

the class LuceneIndexMBeanImpl method getConsistencyCheckResult.

private Result getConsistencyCheckResult(String indexPath, boolean fullCheck) throws IOException {
    NodeState root = nodeStore.getRoot();
    Level level = fullCheck ? Level.FULL : Level.BLOBS_ONLY;
    IndexConsistencyChecker checker = new IndexConsistencyChecker(root, indexPath, workDir);
    return checker.check(level);
}
Also used : IndexConsistencyChecker(org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker) NodeState(org.apache.jackrabbit.oak.spi.state.NodeState) Level(org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.Level)

Aggregations

IndexConsistencyChecker (org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker)1 Level (org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.Level)1 NodeState (org.apache.jackrabbit.oak.spi.state.NodeState)1