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 Diff
build()
Create an executable version of theDiff
command.Diff.Builder
withFilter(String filter)
The path to a subtree.Diff.Builder
withIgnoreMissingSegments(boolean ignoreMissingSegments)
Whether to ignore exceptions caused by missing segments in the segment store.Diff.Builder
withIncremental(boolean incremental)
Set whether or not to perform an incremental diff of the specified interval.Diff.Builder
withInterval(String interval)
The two node records to diff specified as a record ID interval.Diff.Builder
withOutput(File file)
The file where the output of this command is stored.Diff.Builder
withPath(File path)
The path to an existing segment store.
-
-
-
Method Detail
-
withPath
public Diff.Builder withPath(File path)
The path to an existing segment store. This parameter is required.- Parameters:
path
- the path to an existing segment store.- 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
-true
to perform an incremental diff,false
otherwise.- 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
-true
to ignore exceptions caused by missing segments,false
otherwise.- Returns:
- this builder.
-
-