Class LuceneInitializerHelper
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneInitializerHelper
-
- All Implemented Interfaces:
RepositoryInitializer
public class LuceneInitializerHelper extends Object implements RepositoryInitializer
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description LuceneInitializerHelper(String name)
LuceneInitializerHelper(String name, Boolean storageEnabled)
LuceneInitializerHelper(String name, Set<String> propertyTypes)
LuceneInitializerHelper(String name, Set<String> propertyTypes, String filePath)
LuceneInitializerHelper(String name, Set<String> propertyTypes, Set<String> excludes)
LuceneInitializerHelper(String name, Set<String> propertyTypes, Set<String> excludes, String filePath, Boolean storageEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LuceneInitializerHelper
async()
set theasync
property to "async".LuceneInitializerHelper
async(@NotNull String async)
will set theasync
property to the provided valuevoid
initialize(@NotNull NodeBuilder builder)
Initializes repository content.
-
-
-
Constructor Detail
-
LuceneInitializerHelper
public LuceneInitializerHelper(String name)
-
LuceneInitializerHelper
public LuceneInitializerHelper(String name, Set<String> propertyTypes, Set<String> excludes)
-
LuceneInitializerHelper
public LuceneInitializerHelper(String name, Set<String> propertyTypes, String filePath)
-
-
Method Detail
-
async
public LuceneInitializerHelper async()
set theasync
property to "async".- Returns:
-
async
public LuceneInitializerHelper async(@NotNull @NotNull String async)
will set theasync
property to the provided value- Parameters:
async
-- Returns:
-
initialize
public void initialize(@NotNull @NotNull NodeBuilder builder)
Description copied from interface:RepositoryInitializer
Initializes repository content. This method is called as soon as a repository becomes available. Note that the repository may already have been initialized, so the implementation of this method should check for that before blindly adding new content.- Specified by:
initialize
in interfaceRepositoryInitializer
- Parameters:
builder
- builder for accessing and modifying repository content
-
-