Class CaptureSchemaMigrator
java.lang.Object
com.shaft.capture.format.CaptureSchemaMigrator
Deterministic migrations for supported older capture schemas.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic tools.jackson.databind.node.ObjectNodemigrate(tools.jackson.databind.JsonNode input) Migrates a supported capture tree to the current schema.
-
Field Details
-
LEGACY_SCHEMA_VERSION
- See Also:
-
-
Method Details
-
migrate
public static tools.jackson.databind.node.ObjectNode migrate(tools.jackson.databind.JsonNode input) Migrates a supported capture tree to the current schema. Supports 0.9 → 1.0 → 1.1 → 1.2 deterministic migration chains.- Parameters:
input- parsed capture tree- Returns:
- migrated deep copy at CURRENT_SCHEMA_VERSION
-