Class ModelDocumentMutation

java.lang.Object
io.fluxzero.common.api.modeling.ModelDocumentMutation

public class ModelDocumentMutation extends Object
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 Details

    • GRAPH_COMPONENT_COLLECTION_PREFIX

      public static final String GRAPH_COMPONENT_COLLECTION_PREFIX
      Prefix for type-isolated internal graph-component collections.
      See Also:
    • MIGRATION_COLLECTION

      public static final String 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

      public static String graphComponentCollection(String modelType)
      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.