Class LuceneInitializerHelper
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneInitializerHelper
-
- All Implemented Interfaces:
RepositoryInitializer
public class LuceneInitializerHelper extends java.lang.Object implements RepositoryInitializer
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description LuceneInitializerHelper(java.lang.String name)
LuceneInitializerHelper(java.lang.String name, java.lang.Boolean storageEnabled)
LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes)
LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.lang.String filePath)
LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.util.Set<java.lang.String> excludes)
LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.util.Set<java.lang.String> excludes, java.lang.String filePath, java.lang.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 java.lang.String async)
will set theasync
property to the provided valuevoid
initialize(@NotNull NodeBuilder builder)
Initializes repository content.
-
-
-
Constructor Detail
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name)
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name, java.lang.Boolean storageEnabled)
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes)
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.util.Set<java.lang.String> excludes)
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.lang.String filePath)
-
LuceneInitializerHelper
public LuceneInitializerHelper(java.lang.String name, java.util.Set<java.lang.String> propertyTypes, java.util.Set<java.lang.String> excludes, java.lang.String filePath, java.lang.Boolean storageEnabled)
-
-
Method Detail
-
async
public LuceneInitializerHelper async()
set theasync
property to "async".- Returns:
-
async
public LuceneInitializerHelper async(@NotNull @NotNull java.lang.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
-
-