Class CompositeIndexer
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.CompositeIndexer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,NodeStateIndexer
public class CompositeIndexer extends Object implements NodeStateIndexer
Many methods in this class call themselves recursively, and are susceptible to infinite recursion if a composite indexer contains itself, directly or indirectly. In this case, the methods will throw a StackOverflowException.
-
-
Constructor Summary
Constructors Constructor Description CompositeIndexer(List<NodeStateIndexer> indexers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<NodeStateIndexer>getIndexers()StringgetIndexName()Set<String>getRelativeIndexedNodeNames()booleanindex(NodeStateEntry entry)booleanindexesRelativeNodes()booleanisEmpty()voidonIndexingStarting()booleanshouldInclude(String path)booleanshouldInclude(NodeDocument doc)
-
-
-
Constructor Detail
-
CompositeIndexer
public CompositeIndexer(List<NodeStateIndexer> indexers)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
onIndexingStarting
public void onIndexingStarting()
- Specified by:
onIndexingStartingin interfaceNodeStateIndexer
-
shouldInclude
public boolean shouldInclude(String path)
- Specified by:
shouldIncludein interfaceNodeStateIndexer
-
shouldInclude
public boolean shouldInclude(NodeDocument doc)
- Specified by:
shouldIncludein interfaceNodeStateIndexer
-
index
public boolean index(NodeStateEntry entry) throws IOException, CommitFailedException
- Specified by:
indexin interfaceNodeStateIndexer- Throws:
IOExceptionCommitFailedException
-
indexesRelativeNodes
public boolean indexesRelativeNodes()
- Specified by:
indexesRelativeNodesin interfaceNodeStateIndexer
-
getRelativeIndexedNodeNames
public Set<String> getRelativeIndexedNodeNames()
- Specified by:
getRelativeIndexedNodeNamesin interfaceNodeStateIndexer
-
getIndexName
public String getIndexName()
- Specified by:
getIndexNamein interfaceNodeStateIndexer
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getIndexers
public List<NodeStateIndexer> getIndexers()
-
-