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); }
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); }
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); }