Modifier and Type | Method and Description |
---|---|
Runnable |
build()
Create an executable version of the
Diff 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.
|
public Diff.Builder withPath(File path)
path
- the path to an existing segment store.public Diff.Builder withInterval(String interval)
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
placeholder head
. This placeholder is translated to the
record ID of the most recent head state.
interval
- an interval between two node record IDs.public Diff.Builder withIncremental(boolean incremental)
false
.incremental
- true
to perform an incremental diff,
false
otherwise.public Diff.Builder withOutput(File file)
file
- the output file.public Diff.Builder withFilter(String filter)
filter
- a path used as as filter for the resulting diff.public Diff.Builder withIgnoreMissingSegments(boolean ignoreMissingSegments)
false
.ignoreMissingSegments
- true
to ignore exceptions caused
by missing segments, false
otherwise.Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.