use of org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy 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);
}
Aggregations