Class Diff.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.tool.Diff.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Diffbuild()Create an executable version of theDiffcommand.Diff.BuilderwithFilter(String filter)The path to a subtree.Diff.BuilderwithIgnoreMissingSegments(boolean ignoreMissingSegments)Whether to ignore exceptions caused by missing segments in the segment store.Diff.BuilderwithIncremental(boolean incremental)Set whether or not to perform an incremental diff of the specified interval.Diff.BuilderwithInterval(String interval)The two node records to diff specified as a record ID interval.Diff.BuilderwithOutput(File file)The file where the output of this command is stored.Diff.BuilderwithPath(String path)The path to an existing segment store.Diff.BuilderwithReadOnlyFileStore(ReadOnlyFileStore store)The read-only filestore at pathDiff.BuilderwithRevisionsProcessor(Revisions.RevisionsProcessor processor)The revisions processor used to list revisions
-
-
-
Method Detail
-
withPath
public Diff.Builder withPath(String path)
The path to an existing segment store. This parameter is required.- Parameters:
path- the path to an existing segment store.- Returns:
- this builder.
-
withReadOnlyFileStore
public Diff.Builder withReadOnlyFileStore(ReadOnlyFileStore store)
The read-only filestore at path- Parameters:
store- the read-only filestore to diff- Returns:
- this builder.
-
withInterval
public Diff.Builder withInterval(String interval)
The two node records to diff specified as a record ID interval. This parameter is required.The interval is specified as two record IDs separated by two full stops (
..). In example,333dc24d-438f-4cca-8b21-3ebf67c05856:12345..46116fda-7a72-4dbc-af88-a09322a7753a:67890. Instead of using a full record ID, it is possible to use the special placeholderhead. This placeholder is translated to the record ID of the most recent head state.- Parameters:
interval- an interval between two node record IDs.- Returns:
- this builder.
-
withIncremental
public Diff.Builder withIncremental(boolean incremental)
Set whether or not to perform an incremental diff of the specified interval. An incremental diff shows every change between the two records at every revision available to the segment store. This parameter is not mandatory and defaults tofalse.- Parameters:
incremental-trueto perform an incremental diff,falseotherwise.- Returns:
- this builder.
-
withOutput
public Diff.Builder withOutput(File file)
The file where the output of this command is stored. this parameter is mandatory.- Parameters:
file- the output file.- Returns:
- this builder.
-
withFilter
public Diff.Builder withFilter(String filter)
The path to a subtree. If specified, this parameter allows to restrict the diff to the specified subtree. This parameter is not mandatory and defaults to the entire tree.- Parameters:
filter- a path used as as filter for the resulting diff.- Returns:
- this builder.
-
withIgnoreMissingSegments
public Diff.Builder withIgnoreMissingSegments(boolean ignoreMissingSegments)
Whether to ignore exceptions caused by missing segments in the segment store. This parameter is not mandatory and defaults tofalse.- Parameters:
ignoreMissingSegments-trueto ignore exceptions caused by missing segments,falseotherwise.- Returns:
- this builder.
-
withRevisionsProcessor
public Diff.Builder withRevisionsProcessor(Revisions.RevisionsProcessor processor)
The revisions processor used to list revisions- Parameters:
processor- a revisions processor- Returns:
- this builder.
-
-