Uses of Interface
io.fluxzero.sdk.modeling.Graph
Packages that use Graph
Package
Description
-
Uses of Graph in io.fluxzero.sdk
Methods in io.fluxzero.sdk that return GraphModifier and TypeMethodDescriptionstatic <T> Graph<T> Fluxzero.assertAndApply(Graph<T> target, Object update) Runs and commits an update against the explicitly selected model graph, independently of any model ID carried by the update payload.static <T> Graph<T> Fluxzero.assertAndApply(Graph<T> target, Object update, io.fluxzero.common.api.Metadata metadata) Runs and commits an update with additional metadata against the explicitly selected model graph.static <T> Graph<T> Fluxzero.loadCurrentGraph(Id<T> modelId) Loads the latest state of the independently stored model identified by the typed ID as a relationship graph.static <T> Graph<T> Fluxzero.loadCurrentGraph(Object modelId, Class<T> modelType) Loads the latest state of an independently stored model as a relationship graph, without inheriting an event or notification handler's historical read boundary.static <T> Graph<T> Lazily loads the independently stored model identified by the typed ID as a relationship graph.static Graph<?> Loads a model whose concrete type is resolved from storage as a lazy relationship graph.static <T> Graph<T> Lazily loads a parent-scoped model by functional child ID and explicit parent type as a relationship graph.static <T> Graph<T> Lazily loads an independently stored model by ID and expected type as a relationship graph.static <T> Graph<T> Fluxzero.loadGraphAt(Id<T> modelId, long stateIndex) Reconstructs a complete historical graph at the requested durable model-state boundary.Methods in io.fluxzero.sdk that return types with arguments of type GraphModifier and TypeMethodDescriptionFluxzero.searchGraph(Class<T> rootModelType) Searches complete graph views for an independent model root.Fluxzero.searchGraph(Class<T> rootModelType, boolean forceAdHoc) Searches complete graph views for an independent model root.Methods in io.fluxzero.sdk with parameters of type GraphModifier and TypeMethodDescriptionstatic <T> Graph<T> Fluxzero.assertAndApply(Graph<T> target, Object update) Runs and commits an update against the explicitly selected model graph, independently of any model ID carried by the update payload.static <T> Graph<T> Fluxzero.assertAndApply(Graph<T> target, Object update, io.fluxzero.common.api.Metadata metadata) Runs and commits an update with additional metadata against the explicitly selected model graph. -
Uses of Graph in io.fluxzero.sdk.common.serialization.jackson
Subclasses with type arguments of type Graph in io.fluxzero.sdk.common.serialization.jacksonModifier and TypeClassDescriptionfinal classSerializes a publicGraphas its model value enriched with recursively composed child paths.Fields in io.fluxzero.sdk.common.serialization.jackson with type parameters of type GraphModifier and TypeFieldDescriptionprotected static final ThreadLocal<Graph<?>> JacksonContentFilter.FilteringSerializer.currentGraphMethods in io.fluxzero.sdk.common.serialization.jackson with parameters of type Graph -
Uses of Graph in io.fluxzero.sdk.modeling
Methods in io.fluxzero.sdk.modeling that return GraphModifier and TypeMethodDescriptionApplies a complete message.Graph.apply(DeserializingMessage update) Applies a deserializing message.Applies one update to this graph's current model and returns the staged resulting graph.Applies the supplied updates in order.Applies one update with explicit metadata.Graph.apply(Collection<?> updates) Applies the supplied updates in order.Graph.assertAndApply(Object update) Verifies and applies the supplied update.Graph.assertAndApply(Object... updates) Verifies and applies the supplied updates in order.Graph.assertAndApply(Object update, io.fluxzero.common.api.Metadata metadata) Verifies and applies the supplied update with explicit metadata.Graph.assertAndApply(Collection<?> updates) Verifies and applies the supplied updates in order.Graph.assertLegal(Object update) Verifies that the supplied update is legal and returns this graph.Graph.atStateIndex(long stateIndex) Returns the same model graph reconstructed at the requested durable state boundary.Graph.commit()Explicitly commits staged changes.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, ModelRepository repository, boolean historical) Creates a complete graph from one coherent repository reconstruction.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) Creates a complete graph while retaining its exact repository boundary for lazy relationship loads.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> durableModels, List<io.fluxzero.common.api.modeling.ModelGraphEdge> durableEdges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, String namespace, Class<T> rootType, Graph.Options options, Map<String, Entity<?>> staged, Function<Entity<?>, Graph<?>> supplementalLoader) Builds one indexed state with visible message-batch values applied before graph selection.Graph.delete()Marks this model as deleted and returns the staged resulting graph.Graph.filterBranches(Predicate<? super Graph<?>> predicate) Returns an immutable response view containing every matching placement, its complete descendant branch and the ancestors needed to preserve its serialized path.static <T> Graph<T> Graphs.filterBranches(Graph<T> graph, Predicate<? super Graph<?>> predicate) Returns a graph view containing matching branches and the ancestors required to reach them.Graph.filterNodes(Predicate<? super Graph<?>> predicate) Returns an immutable, lazy view whose model values are retained only when the supplied predicate accepts their graph placement.Graph.ifPresent(UnaryOperator<Graph<T>> operation) Applies a graph operation only when a current model value is present.static <T> Graph<T> Graphs.lazy(Entity<T> entity, long stateIndex, ModelRepository repository) Creates a lazy one-model graph without loading relationships.static <T> Graph<T> Graphs.lazy(Object parentId, Class<?> parentType, Object modelId, Class<T> modelType, ModelRepository repository) Creates a detached graph for a parent-scoped model.static <T> Graph<T> Graphs.lazy(Object modelId, Class<T> modelType, ModelRepository repository) Creates a detached graph whose model and relationship state remain lazy.static <T> Graph<T> Graphs.lazyCurrent(Object modelId, Class<T> modelType, ModelRepository repository) Creates a graph whose root deliberately resolves to the latest state instead of a handler boundary.static <T> Graph<T> Graphs.lazyRepositoryId(String repositoryId, Class<T> modelType, ModelRepository repository) Creates a detached graph for an exact persisted identity.static <T> Graph<T> Returns a lazy view whose values are transformed independently on first access.static <T> Graph<T> Graphs.materialized(List<Graphs.MaterializedNode> nodes, Class<T> rootType, long stateIndex, Long previousStateIndex, ModelRepository repository, Map<Class<?>, List<String>> declaredPaths, Map<String, String> pathOverrides) Creates the same indexed graph view for a materialized search document.Graph.previous()Returns the preceding model revision as a lazy graph, ornullwhen none is retained.static <T> Graph<T> Graphs.remapPaths(Graph<T> graph, Map<String, String> pathOverrides) Returns an immutable graph view with remapped direct relationship paths.Graph<?> Graph.root()Returns the outer graph root.Graph.selectPaths(String... paths) Returns an immutable graph view containing only the selected serialized relationship paths and their ancestors.Graph.selectPaths(Collection<String> paths) static <T> Graph<T> Graphs.selectPaths(Graph<T> graph, Collection<String> paths) Returns a lazy immutable view containing only selected serialized relationship paths.Graph.update(UnaryOperator<T> update) Updates the current value directly.Graph.withContext(Object... values) Returns an immutable graph view carrying typed response context for graph-derived properties.static <T> Graph<T> Graphs.withContext(Graph<T> graph, Collection<?> values) Returns an immutable graph view carrying response-wide typed context.Methods in io.fluxzero.sdk.modeling that return types with arguments of type GraphModifier and TypeMethodDescriptionReturns the closest ancestor, including the current graph, assignable to the requested type.Graph.children()Returns all direct children in deterministic relationship-path order.Returns direct children of the requested type.Returns direct children placed at the requested explicit relationship path.Graph.descendants(Class<D> descendantType) Returns all descendants assignable to the requested type in deterministic graph order.Graph.descendants(String path, Class<D> descendantType) Returns descendants reached through the requested relationship path.Graph.filterGraph(Predicate<? super Graph<T>> predicate) Returns this graph when it matches the supplied condition.Graph.filterPresent()Returns this graph only when its current model value is present.Finds a graph by exact persisted identity or alias.Finds a graph by functional identity or alias and expected model type.Graph.find(Object idOrAlias, Class<M> modelType, GraphLookupPolicy lookupPolicy) Finds a graph by functional identity or alias and expected model type using the supplied ambiguity policy.Finds the first graph in deterministic graph order matching the supplied condition.Graph.parent()Returns the parent of this concrete graph placement, if one exists.Returns the closest parent assignable to the requested type.Graph.parents()Returns all direct parents of this model.Graph.playBackToCondition(Predicate<Graph<T>> condition) Plays back to the first retained revision matching the supplied condition.Graph.playBackToEvent(Long eventIndex, String eventId) Plays back to the first retained revision matching the supplied event boundary.Graph.revisions()Returns current and retained preceding revisions, newest first.Graph.stream()Lazily traverses this graph in deterministic pre-order, including this graph itself.Methods in io.fluxzero.sdk.modeling with parameters of type GraphModifier and TypeMethodDescriptionstatic <T> Graph<T> Graphs.filterBranches(Graph<T> graph, Predicate<? super Graph<?>> predicate) Returns a graph view containing matching branches and the ancestors required to reach them.static <T> Graph<T> Returns a lazy view whose values are transformed independently on first access.static <T> Graph<T> Graphs.remapPaths(Graph<T> graph, Map<String, String> pathOverrides) Returns an immutable graph view with remapped direct relationship paths.static <T> Graph<T> Graphs.selectPaths(Graph<T> graph, Collection<String> paths) Returns a lazy immutable view containing only selected serialized relationship paths.static <T> Graph<T> Graphs.withContext(Graph<T> graph, Collection<?> values) Returns an immutable graph view carrying response-wide typed context.Method parameters in io.fluxzero.sdk.modeling with type arguments of type GraphModifier and TypeMethodDescriptionstatic <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> durableModels, List<io.fluxzero.common.api.modeling.ModelGraphEdge> durableEdges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, String namespace, Class<T> rootType, Graph.Options options, Map<String, Entity<?>> staged, Function<Entity<?>, Graph<?>> supplementalLoader) Builds one indexed state with visible message-batch values applied before graph selection.Graph.filterBranches(Predicate<? super Graph<?>> predicate) Returns an immutable response view containing every matching placement, its complete descendant branch and the ancestors needed to preserve its serialized path.static <T> Graph<T> Graphs.filterBranches(Graph<T> graph, Predicate<? super Graph<?>> predicate) Returns a graph view containing matching branches and the ancestors required to reach them.Graph.filterGraph(Predicate<? super Graph<T>> predicate) Returns this graph when it matches the supplied condition.Graph.filterNodes(Predicate<? super Graph<?>> predicate) Returns an immutable, lazy view whose model values are retained only when the supplied predicate accepts their graph placement.Finds the first graph in deterministic graph order matching the supplied condition.Graph.ifPresent(UnaryOperator<Graph<T>> operation) Applies a graph operation only when a current model value is present.default <R> Optional<R> Maps this graph itself without loading relationship context.default <R> Optional<R> Graph.mapIfPresent(Function<? super Graph<T>, ? extends R> mapper) Maps this graph only when its current model value is present.static <T> Graph<T> Returns a lazy view whose values are transformed independently on first access.Graph.playBackToCondition(Predicate<Graph<T>> condition) Plays back to the first retained revision matching the supplied condition. -
Uses of Graph in io.fluxzero.sdk.persisting.repository
Methods in io.fluxzero.sdk.persisting.repository that return GraphModifier and TypeMethodDescription<T> Graph<T> DefaultModelRepository.loadGraph(@NonNull String rootId, @NonNull Class<T> rootType, @NonNull io.fluxzero.common.api.modeling.ModelReadBoundary boundary, Graph.Options options) <T> Graph<T> DefaultModelRepository.loadGraph(@NonNull String rootId, @NonNull Class<T> rootType, Graph.Options options) default <T> Graph<T> Reconstructs a model and every related descendant at one state boundary.default <T> Graph<T> ModelRepository.loadGraph(@NonNull String rootId, @NonNull Class<T> rootType, @NonNull io.fluxzero.common.api.modeling.ModelReadBoundary boundary, Graph.Options options) Reconstructs one model graph at the supplied current, state, commit, event, or before boundary.default <T> Graph<T> ModelRepository.loadGraph(@NonNull String rootId, @NonNull Class<T> rootType, Graph.Options options) Reconstructs a model graph using exact persisted identity, root type, and optional caller-imposed limits.default <T> Graph<T> ModelRepository.loadGraphAt(@NonNull Id<T> rootId, long stateIndex) Reconstructs a model graph at an inclusive historical model-state boundary.default <T> Graph<T> ModelRepository.loadGraphAt(@NonNull Id<T> rootId, long stateIndex, Graph.Options options) Reconstructs a model graph at an inclusive historical model-state boundary with optional caller-imposed limits.default <T> Graph<T> ModelRepository.loadGraphAt(@NonNull String rootId, @NonNull Class<T> rootType, long stateIndex, Graph.Options options) Reconstructs a model graph using exact persisted identity, root type, an inclusive historical boundary, and optional caller-imposed limits.<T> Graph<T> DefaultModelRepository.loadGraphAtIncludingMessageBatch(@NonNull String rootId, @NonNull Class<T> rootType, long stateIndex, Graph.Options options) Reconstructs a graph at an exact durable boundary and overlays pending values from earlier messages in the current message batch.default <T> Graph<T> ModelRepository.loadGraphBefore(@NonNull String rootId, @NonNull Class<T> rootType, long stateIndex, Graph.Options options) Reconstructs the model graph that was current immediately before an opaque state boundary.Methods in io.fluxzero.sdk.persisting.repository that return types with arguments of type GraphModifier and TypeMethodDescriptionDefaultModelRepository.loadAncestorGraph(String modelId, Class<?> modelType, Class<A> ancestorType, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) ModelAncestorResolver.loadAncestorGraph(String modelId, Class<?> modelType, Class<A> ancestorType, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) Resolves and loads only the closest ancestor assignable toancestorTypeat the graph's read boundary.DefaultModelRepository.loadAncestorGraphs(String modelId, Class<?> modelType, Class<A> ancestorType, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) ModelAncestorResolver.loadAncestorGraphs(String modelId, Class<?> modelType, Class<A> ancestorType, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) Resolves every reachable ancestor assignable toancestorTypeat one boundary. -
Uses of Graph in io.fluxzero.sdk.persisting.search
Subclasses with type arguments of type Graph in io.fluxzero.sdk.persisting.searchMethods in io.fluxzero.sdk.persisting.search that return types with arguments of type GraphModifier and TypeMethodDescriptionDefaultDocumentStore.searchGraph(Class<T> rootModelType, boolean forceAdHoc) DocumentStore.searchGraph(@NonNull Class<T> rootModelType) Searches complete graph views for an independent model root.DocumentStore.searchGraph(@NonNull Class<T> rootModelType, boolean forceAdHoc) Searches complete graph views for an independent model root.Methods in io.fluxzero.sdk.persisting.search with parameters of type GraphModifier and TypeMethodDescriptionMaterializedGraphDocumentMigration.create(Graph<?> graph, DeserializingMessage message, DocumentSerializer serializer) Returns a replacement only when at least one node type or revision evolved.