Class IndexDefinitionUpdater
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.importer.IndexDefinitionUpdater
-
public class IndexDefinitionUpdater extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
INDEX_DEFINITIONS_JSON
Name of file which would be check for presence of index-definitions
-
Constructor Summary
Constructors Constructor Description IndexDefinitionUpdater(File file)
IndexDefinitionUpdater(String json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(NodeBuilder rootBuilder)
NodeBuilder
apply(NodeBuilder rootBuilder, String indexPath)
Set<String>
getIndexPaths()
NodeState
getIndexState(String indexPath)
-
-
-
Field Detail
-
INDEX_DEFINITIONS_JSON
public static final String INDEX_DEFINITIONS_JSON
Name of file which would be check for presence of index-definitions- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexDefinitionUpdater
public IndexDefinitionUpdater(File file) throws IOException
- Throws:
IOException
-
IndexDefinitionUpdater
public IndexDefinitionUpdater(String json) throws IOException
- Throws:
IOException
-
-
Method Detail
-
apply
public void apply(NodeBuilder rootBuilder) throws IOException, CommitFailedException
- Throws:
IOException
CommitFailedException
-
apply
public NodeBuilder apply(NodeBuilder rootBuilder, String indexPath)
-
-