Interface MergeKeyBehavior
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.projectnessie.model.ImmutableMergeKeyBehavior.Builderbuilder()If present, the current content on the target branch will be compared against this value.If present, the current documentation on the target branch will be compared against this value.getKey()Additional information about the operation and/or content object.Clients can provide a "resolved" content object, which will then automatically be persisted via the merge operation instead of detecting and potentially raising a merge-conflict, assuming the content-type is the same.Clients can provide a "resolved" documentation object, which will then automatically be persisted via the merge operation instead of detecting and potentially raising a merge-conflict, assuming the content-type is the same.static MergeKeyBehaviorof(ContentKey key, MergeBehavior mergeBehavior) static MergeKeyBehaviorof(ContentKey key, MergeBehavior mergeBehavior, Content expectedTargetContent, Content resolvedContent)
-
Method Details
-
getKey
ContentKey getKey() -
getMergeBehavior
MergeBehavior getMergeBehavior() -
getExpectedTargetContent
If present, the current content on the target branch will be compared against this value.This parameter is not supported when multiple commits will be generated, which means only merge operations.
Supplying a resolved content requires setting this attribute. The merge operation will result in a "conflict", if current value on the target branch is different from this value.
-
getResolvedContent
Clients can provide a "resolved" content object, which will then automatically be persisted via the merge operation instead of detecting and potentially raising a merge-conflict, assuming the content-type is the same.This parameter is not supported when multiple commits will be generated, which means only merge operations.
It is mandatory to supply the expected content value.
-
getExpectedTargetDocumentation
If present, the current documentation on the target branch will be compared against this value.This parameter is not supported when multiple commits will be generated, which means only merge operations.
Supplying a resolved documentation requires setting this attribute. The merge operation will result in a "conflict", if current value on the target branch is different from this value.
-
getResolvedDocumentation
Clients can provide a "resolved" documentation object, which will then automatically be persisted via the merge operation instead of detecting and potentially raising a merge-conflict, assuming the content-type is the same.This parameter is not supported when multiple commits will be generated, which means only merge operations.
It is mandatory to supply the expected documentation value.
-
getMetadata
List<ContentMetadata> getMetadata()Additional information about the operation and/or content object. If and how a Nessie server uses and handles the information depends on the server version and type of metadata (called variant). -
builder
static org.projectnessie.model.ImmutableMergeKeyBehavior.Builder builder() -
of
-
of
static MergeKeyBehavior of(ContentKey key, MergeBehavior mergeBehavior, Content expectedTargetContent, Content resolvedContent)
-