Package graphql.schema.diffing
Class SchemaDiffing
java.lang.Object
graphql.schema.diffing.SchemaDiffing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SchemaDiffingRunningCheck
(package private) SchemaGraph
(package private) SchemaGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiffAndAnalyze
(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2) diffGraphQLSchema
(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2) diffGraphQLSchemaAllEdits
(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2, AtomicInteger algoIterationCount) private DiffImpl.OptimalEdit
diffImpl
(SchemaGraph sourceGraph, SchemaGraph targetGraph, AtomicInteger algoIterationCount) private void
sortVertices
(List<Vertex> vertices, SchemaGraph schemaGraph, PossibleMappingsCalculator.PossibleMappings possibleMappings) void
stop()
Tries to stop the algorithm from execution ASAP by throwing aSchemaDiffingCancelledException
.
-
Field Details
-
runningCheck
-
sourceGraph
SchemaGraph sourceGraph -
targetGraph
SchemaGraph targetGraph
-
-
Constructor Details
-
SchemaDiffing
public SchemaDiffing()
-
-
Method Details
-
stop
public void stop()Tries to stop the algorithm from execution ASAP by throwing aSchemaDiffingCancelledException
. -
diffGraphQLSchema
public List<EditOperation> diffGraphQLSchema(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2) throws Exception - Throws:
Exception
-
diffAndAnalyze
public EditOperationAnalysisResult diffAndAnalyze(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2) throws Exception - Throws:
Exception
-
diffGraphQLSchemaAllEdits
public DiffImpl.OptimalEdit diffGraphQLSchemaAllEdits(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2, AtomicInteger algoIterationCount) throws Exception - Throws:
Exception
-
diffImpl
private DiffImpl.OptimalEdit diffImpl(SchemaGraph sourceGraph, SchemaGraph targetGraph, AtomicInteger algoIterationCount) throws Exception - Throws:
Exception
-
sortVertices
private void sortVertices(List<Vertex> vertices, SchemaGraph schemaGraph, PossibleMappingsCalculator.PossibleMappings possibleMappings)
-