Class MaterializedGraphDocumentMigration
java.lang.Object
io.fluxzero.sdk.persisting.search.MaterializedGraphDocumentMigration
Builds one canonical, projection-only replacement for an upcast materialized model graph.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne compare-and-replace operation against the manifest of the handled graph document. -
Method Summary
Modifier and TypeMethodDescriptioncreate(Graph<?> graph, DeserializingMessage message, DocumentSerializer serializer) Returns a replacement only when at least one node type or revision evolved.
-
Method Details
-
create
public static Optional<MaterializedGraphDocumentMigration.Migration> create(Graph<?> graph, DeserializingMessage message, DocumentSerializer serializer) Returns a replacement only when at least one node type or revision evolved. The returned document retains the exact root, state boundary and graph placement manifest of the handled projection. Tombstones are observational and never become writable graph documents.
-