Class DefaultDeltaChange
java.lang.Object
com.helixframework.delta.internal.DefaultDeltaChange
- All Implemented Interfaces:
DeltaChange
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDeltaChange(DeltaOp op, String path, String parentPath, List<String> ancestors, com.fasterxml.jackson.databind.JsonNode beforeValue, com.fasterxml.jackson.databind.JsonNode afterValue, ChangeClassification classification, InclusionReason inclusionReason, String explanation) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeReturns the value from the after document, or a redacted/null placeholder when the active options suppress it.Returns the ordered ancestor chain from the root to the parent path.com.fasterxml.jackson.databind.JsonNodeReturns the value from the before document, or a redacted/null placeholder when the active options suppress it.Returns the structural classification of the change.explain()Returns a human-readable explanation suitable for logs and audit output.Returns why this path was included in the delta output.op()Returns the normalized operation represented by this change.Returns the parent path that directly contains the changed node.path()Returns the absolute JSON Pointer path for this change.
-
Constructor Details
-
DefaultDeltaChange
public DefaultDeltaChange(DeltaOp op, String path, String parentPath, List<String> ancestors, com.fasterxml.jackson.databind.JsonNode beforeValue, com.fasterxml.jackson.databind.JsonNode afterValue, ChangeClassification classification, InclusionReason inclusionReason, String explanation)
-
-
Method Details
-
op
Description copied from interface:DeltaChangeReturns the normalized operation represented by this change.- Specified by:
opin interfaceDeltaChange- Returns:
- delta operation
-
path
Description copied from interface:DeltaChangeReturns the absolute JSON Pointer path for this change.- Specified by:
pathin interfaceDeltaChange- Returns:
- changed path
-
parentPath
Description copied from interface:DeltaChangeReturns the parent path that directly contains the changed node.- Specified by:
parentPathin interfaceDeltaChange- Returns:
- parent path
-
ancestors
Description copied from interface:DeltaChangeReturns the ordered ancestor chain from the root to the parent path.- Specified by:
ancestorsin interfaceDeltaChange- Returns:
- ancestor paths
-
beforeValue
public com.fasterxml.jackson.databind.JsonNode beforeValue()Description copied from interface:DeltaChangeReturns the value from the before document, or a redacted/null placeholder when the active options suppress it.- Specified by:
beforeValuein interfaceDeltaChange- Returns:
- before value view
-
afterValue
public com.fasterxml.jackson.databind.JsonNode afterValue()Description copied from interface:DeltaChangeReturns the value from the after document, or a redacted/null placeholder when the active options suppress it.- Specified by:
afterValuein interfaceDeltaChange- Returns:
- after value view
-
classification
Description copied from interface:DeltaChangeReturns the structural classification of the change.- Specified by:
classificationin interfaceDeltaChange- Returns:
- change classification
-
inclusionReason
Description copied from interface:DeltaChangeReturns why this path was included in the delta output.- Specified by:
inclusionReasonin interfaceDeltaChange- Returns:
- inclusion reason
-
explain
Description copied from interface:DeltaChangeReturns a human-readable explanation suitable for logs and audit output.- Specified by:
explainin interfaceDeltaChange- Returns:
- explanation text
-