Search in sources :

Example 1 with SecondaryStoreBuilder

use of org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreBuilder in project jackrabbit-oak by apache.

the class BundledDocumentDifferTest method configureSecondary.

private SecondaryStoreCache configureSecondary() {
    SecondaryStoreBuilder builder = createBuilder(new PathFilter(of("/"), Collections.<String>emptyList()));
    builder.metaPropNames(DocumentNodeStore.META_PROP_NAMES);
    SecondaryStoreCache cache = builder.buildCache();
    SecondaryStoreObserver observer = builder.buildObserver(cache);
    store.addObserver(observer);
    return cache;
}
Also used : PathFilter(org.apache.jackrabbit.oak.plugins.index.PathFilter) SecondaryStoreCache(org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreCache) SecondaryStoreBuilder(org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreBuilder) SecondaryStoreObserver(org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreObserver)

Aggregations

SecondaryStoreBuilder (org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreBuilder)1 SecondaryStoreCache (org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreCache)1 SecondaryStoreObserver (org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreObserver)1 PathFilter (org.apache.jackrabbit.oak.plugins.index.PathFilter)1