Search in sources :

Example 1 with UniqueEntryStoreStrategy

use of org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy in project jackrabbit-oak by apache.

the class Multiplexers method newStrategy.

private static IndexStoreStrategy newStrategy(boolean unique, boolean defaultMount, String name, Mount m) {
    Predicate<String> filter = newFilter(m);
    boolean readOnly = unique && !m.isDefault() && RO_PRIVATE_UNIQUE_INDEX;
    return unique ? new FilteringIndexStoreStrategy(new UniqueEntryStoreStrategy(name), filter, readOnly) : new FilteringIndexStoreStrategy(new ContentMirrorStoreStrategy(name), filter);
}
Also used : ContentMirrorStoreStrategy(org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy) UniqueEntryStoreStrategy(org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy) FilteringIndexStoreStrategy(org.apache.jackrabbit.oak.plugins.index.property.strategy.FilteringIndexStoreStrategy)

Aggregations

ContentMirrorStoreStrategy (org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy)1 FilteringIndexStoreStrategy (org.apache.jackrabbit.oak.plugins.index.property.strategy.FilteringIndexStoreStrategy)1 UniqueEntryStoreStrategy (org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy)1