Class NodeStateEntryTraverser
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntryTraverser
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<NodeStateEntry>
public class NodeStateEntryTraverser extends java.lang.Object implements java.lang.Iterable<NodeStateEntry>, java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description NodeStateEntryTraverser(java.lang.String id, DocumentNodeStore documentNodeStore, MongoDocumentStore documentStore)
NodeStateEntryTraverser(java.lang.String id, RevisionVector rootRevision, DocumentNodeStore documentNodeStore, MongoDocumentStore documentStore, TraversingRange traversingRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
TraversingRange
getDocumentTraversalRange()
Returns the modification range corresponding to node states which are traversed by this.java.lang.String
getId()
@NotNull java.util.Iterator<NodeStateEntry>
iterator()
NodeStateEntryTraverser
withProgressCallback(java.util.function.Consumer<java.lang.String> progressReporter)
-
-
-
Constructor Detail
-
NodeStateEntryTraverser
public NodeStateEntryTraverser(java.lang.String id, DocumentNodeStore documentNodeStore, MongoDocumentStore documentStore)
-
NodeStateEntryTraverser
public NodeStateEntryTraverser(java.lang.String id, RevisionVector rootRevision, DocumentNodeStore documentNodeStore, MongoDocumentStore documentStore, TraversingRange traversingRange)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
iterator
@NotNull public @NotNull java.util.Iterator<NodeStateEntry> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<NodeStateEntry>
-
withProgressCallback
public NodeStateEntryTraverser withProgressCallback(java.util.function.Consumer<java.lang.String> progressReporter)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
getDocumentTraversalRange
public TraversingRange getDocumentTraversalRange()
Returns the modification range corresponding to node states which are traversed by this.- Returns:
LastModifiedRange
-
-