Class RevisionHistory
java.lang.Object
org.apache.jackrabbit.oak.segment.file.tooling.RevisionHistory
Utility for tracing a node back through the revision history.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresentation of a point in time for a given node. -
Constructor Summary
ConstructorsConstructorDescriptionRevisionHistory(@NotNull File directory) Create a new instance for aReadOnlyFileStorein the givendirectory. -
Method Summary
Modifier and TypeMethodDescriptiongetHistory(@NotNull JournalFile journal, @NotNull String path) Return the history of the node at the givenpathaccording to the passedjournal.
-
Constructor Details
-
RevisionHistory
public RevisionHistory(@NotNull @NotNull File directory) throws IOException, InvalidFileStoreVersionException Create a new instance for aReadOnlyFileStorein the givendirectory.- Parameters:
directory-- Throws:
IOExceptionInvalidFileStoreVersionException
-
-
Method Details
-
getHistory
public Iterator<RevisionHistory.HistoryElement> getHistory(@NotNull @NotNull JournalFile journal, @NotNull @NotNull String path) throws IOException Return the history of the node at the givenpathaccording to the passedjournal.- Parameters:
journal-path-- Returns:
- Throws:
IOException
-