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