Class ModelDocumentMutation
java.lang.Object
io.fluxzero.common.api.modeling.ModelDocumentMutation
Optional direct current-document consequence of one model target transition.
A null document represents deletion from collection. The runtime attaches the target transition's
assigned stateIndex and applies the mutation through a monotone write fence.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBytes()Returns the serialized document payload size without counting protocol framing.static StringgraphComponentCollection(String modelType) Returns the private search collection for current graph-component documents of one model type.
-
Field Details
-
GRAPH_COMPONENT_COLLECTION_PREFIX
Prefix for type-isolated internal graph-component collections.- See Also:
-
MIGRATION_COLLECTION
Internal collection containing crash-safe direct-document state while published legacy events are being rebuilt. Ordinary Model loads and searches never use this collection.- See Also:
-
-
Constructor Details
-
ModelDocumentMutation
public ModelDocumentMutation()
-
-
Method Details
-
graphComponentCollection
Returns the private search collection for current graph-component documents of one model type.Type isolation lets relationship search use the component's ordinary document indexes without scanning or mixing unrelated model types. The complete model type name is already part of the persisted model contract and keeps the collection deterministic across SDK instances.
-
getBytes
public long getBytes()Returns the serialized document payload size without counting protocol framing.
-