Uses of Class
graphql.schema.diffing.Vertex
Packages that use Vertex
-
Uses of Vertex in graphql.schema.diffing
Fields in graphql.schema.diffing declared as VertexModifier and TypeFieldDescriptionprivate Vertex
Edge.from
private Vertex
EditOperation.sourceVertex
private Vertex
EditOperation.targetVertex
private Vertex
Edge.to
Fields in graphql.schema.diffing with type parameters of type VertexModifier and TypeFieldDescriptionPossibleMappingsCalculator.PossibleMappings.allIsolatedSource
PossibleMappingsCalculator.PossibleMappings.allIsolatedTarget
DiffImpl.MappingEntry.availableTargetVertices
These are the available vertices, relative to the parent mapping.PossibleMappingsCalculator.PossibleMappings.contexts
PossibleMappingsCalculator.PossibleMappings.contexts
SchemaGraph.directivesByName
SchemaGraph.edgesByDirection
SchemaGraph.edgesByDirection
SchemaGraph.edgesByInverseDirection
SchemaGraph.edgesByInverseDirection
Mapping.fixedMappings
Mapping.fixedMappings
PossibleMappingsCalculator.PossibleMappings.fixedOneToOneMappings
PossibleMappingsCalculator.PossibleMappings.fixedOneToOneMappings
PossibleMappingsCalculator.PossibleMappings.fixedOneToOneSources
PossibleMappingsCalculator.PossibleMappings.fixedOneToOneTargets
Mapping.fixedParentRestrictions
Mapping.fixedParentRestrictions
Mapping.fixedSourceList
Mapping.fixedTargetList
Mapping.map
Mapping.map
PossibleMappingsCalculator.PossibleMappings.possibleMappings
PossibleMappingsCalculator.PossibleMappings.possibleMappings
Mapping.sourceList
Mapping.targetList
SchemaGraph.typesByName
SchemaGraph.typeToVertices
SchemaGraph.vertices
Methods in graphql.schema.diffing that return VertexModifier and TypeMethodDescriptionSchemaGraph.getAppliedDirectiveContainerForAppliedDirective
(Vertex appliedDirective) SchemaGraph.getAppliedDirectiveForAppliedArgument
(Vertex appliedArgument) SchemaGraph.getDirective
(String name) SchemaGraph.getEnumForEnumValue
(Vertex enumValue) SchemaGraph.getFieldOrDirectiveForArgument
(Vertex argument) SchemaGraph.getFieldsContainerForField
(Vertex field) Edge.getFrom()
SchemaGraph.getInputObjectForInputField
(Vertex inputField) Mapping.getParentRestriction
(Vertex v) SchemaGraph.getSingleAdjacentInverseVertex
(Vertex input) Gets the one inverse adjacent edge to the input and gets the other vertex.Mapping.getSource
(int i) EditOperation.getSourceVertex()
Mapping.getTarget
(int i) EditOperation.getTargetVertex()
Edge.getTo()
private Vertex
SchemaGraphFactory.newArgument
(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode) private Vertex
SchemaGraphFactory.newField
(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode) private Vertex
SchemaGraphFactory.newInputField
(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode) static Vertex
Vertex.newIsolatedNode
(String debugName) Methods in graphql.schema.diffing that return types with arguments of type VertexModifier and TypeMethodDescriptionSchemaGraph.addIsolatedVertices
(int count, String debugPrefix) SchemaGraph.findTargetVertex
(Vertex from, Predicate<Vertex> vertexPredicate) SchemaGraph.getAdjacentVertices
(Vertex from) SchemaGraph.getAdjacentVertices
(Vertex from, Predicate<Vertex> predicate) SchemaGraph.getAdjacentVerticesInverse
(Vertex to) SchemaGraph.getAdjacentVerticesInverse
(Vertex to, Predicate<Vertex> predicate) PossibleMappingsCalculator.getFixedParentRestrictions()
PossibleMappingsCalculator.getFixedParentRestrictions()
PossibleMappingsCalculator.getFixedParentRestrictions
(SchemaGraph sourceGraph, List<Vertex> fixedSourceVertices, Map<Vertex, Vertex> fixedOneToOneMappings) This computes the initial set of parent restrictions based on the fixed portion of the mapping.PossibleMappingsCalculator.getFixedParentRestrictions
(SchemaGraph sourceGraph, List<Vertex> fixedSourceVertices, Map<Vertex, Vertex> fixedOneToOneMappings) This computes the initial set of parent restrictions based on the fixed portion of the mapping.PossibleMappingsCalculator.getFixedParentRestrictionsInverse
(Map<Vertex, Vertex> fixedOneToOneMappingsInverted) PossibleMappingsCalculator.getFixedParentRestrictionsInverse
(Map<Vertex, Vertex> fixedOneToOneMappingsInverted) PossibleMappingsCalculator.getNonFixedParentRestrictions
(SchemaGraph sourceGraph, SchemaGraph targetGraph, Mapping mapping) This computes the initial set of parent restrictions based on the given non-fixed mapping.PossibleMappingsCalculator.getNonFixedParentRestrictions
(SchemaGraph sourceGraph, SchemaGraph targetGraph, Mapping mapping) This computes the initial set of parent restrictions based on the given non-fixed mapping.SchemaGraph.getVertices()
SchemaGraph.getVerticesByType()
SchemaGraph.getVerticesByType
(String type) Vertex.newIsolatedNodes
(int count, String debugName) Methods in graphql.schema.diffing with parameters of type VertexModifier and TypeMethodDescriptionvoid
void
SchemaGraph.addDirective
(String name, Vertex vertex) void
void
int
SchemaGraph.adjacentEdgesAndInverseCount
(Vertex fromAndTo) private int
DiffImpl.calcAnchoredVerticesCost
(Vertex v, Vertex u, Mapping partialMapping) private double
DiffImpl.calcLowerBoundMappingCost
(Vertex v, Vertex u, Mapping partialMapping, Map<Vertex, Double> isolatedVerticesCache, Map<Vertex, Vertex> nonFixedParentRestrictions) lower bound mapping cost between for v -> u in respect to a partial mapping.private double
DiffImpl.calcLowerBoundMappingCostForIsolated
(Vertex vertex, Mapping partialMapping, boolean sourceOrTarget) Simplified lower bound calc if the source/target vertex is isolatedprivate void
DiffImpl.calculateRestOfChildren
(List<Vertex> availableTargetVertices, HungarianAlgorithm hungarianAlgorithm, double[][] costMatrixCopy, double editorialCostForMapping, Mapping partialMapping, Vertex v_i, int upperBound, int level, LinkedBlockingQueue<DiffImpl.MappingEntry> siblings) static EditOperation
EditOperation.changeVertex
(String description, Vertex sourceVertex, Vertex targetVertex) boolean
boolean
Mapping.containsSource
(Vertex sourceVertex) boolean
Mapping.containsTarget
(Vertex targetVertex) private void
SchemaGraphFactory.createAppliedDirectives
(Vertex from, List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph) static EditOperation
EditOperation.deleteVertex
(String description, Vertex sourceVertex, Vertex targetVertex) Mapping.extendMapping
(Vertex source, Vertex target) boolean
PossibleMappingsCalculator.VertexContextSegment.filter
(Vertex vertex, SchemaGraph schemaGraph) SchemaGraph.findTargetVertex
(Vertex from, Predicate<Vertex> vertexPredicate) SchemaGraph.getAdjacentEdges
(Vertex from, Predicate<Vertex> predicate) SchemaGraph.getAdjacentEdgesAndInverseNonCopy
(Vertex fromAndTo) SchemaGraph.getAdjacentEdgesInverse
(Vertex to, Predicate<Vertex> predicate) SchemaGraph.getAdjacentEdgesInverseCopied
(Vertex to) SchemaGraph.getAdjacentEdgesInverseNonCopy
(Vertex to) SchemaGraph.getAdjacentEdgesNonCopy
(Vertex from) SchemaGraph.getAdjacentVertices
(Vertex from) SchemaGraph.getAdjacentVertices
(Vertex from, Predicate<Vertex> predicate) SchemaGraph.getAdjacentVerticesInverse
(Vertex to) SchemaGraph.getAdjacentVerticesInverse
(Vertex to, Predicate<Vertex> predicate) SchemaGraph.getAllAdjacentEdges
(List<Vertex> fromList, Vertex to) SchemaGraph.getAppliedDirectiveContainerForAppliedDirective
(Vertex appliedDirective) SchemaGraph.getAppliedDirectiveForAppliedArgument
(Vertex appliedArgument) int
SchemaGraph.getAppliedDirectiveIndex
(Vertex appliedDirective) @Nullable Edge
@Nullable Edge
SchemaGraph.getEdgeOrInverse
(Vertex from, Vertex to) SchemaGraph.getEnumForEnumValue
(Vertex enumValue) SchemaGraph.getFieldOrDirectiveForArgument
(Vertex argument) SchemaGraph.getFieldsContainerForField
(Vertex field) SchemaGraph.getInputObjectForInputField
(Vertex inputField) Mapping.getParentRestriction
(Vertex v) SchemaGraph.getSingleAdjacentEdge
(Vertex from, Predicate<Edge> predicate) SchemaGraph.getSingleAdjacentInverseVertex
(Vertex input) Gets the one inverse adjacent edge to the input and gets the other vertex.private void
SchemaGraphFactory.handleArgument
(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph) private void
SchemaGraphFactory.handleDirective
(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleField
(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleInputField
(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleInputObject
(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleInterfaceVertex
(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleObjectVertex
(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
SchemaGraphFactory.handleUnion
(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) static boolean
PossibleMappingsCalculator.hasChildrenRestrictions
(Vertex vertex) boolean
Mapping.hasParentRestriction
(Vertex v) static boolean
PossibleMappingsCalculator.hasParentRestrictions
(Vertex vertex) abstract String
PossibleMappingsCalculator.VertexContextSegment.idForVertex
(Vertex vertex, SchemaGraph schemaGraph) static EditOperation
EditOperation.insertVertex
(String description, Vertex sourceVertex, Vertex targetVertex) boolean
boolean
PossibleMappingsCalculator.PossibleMappings.mappingPossible
(Vertex sourceVertex, Vertex targetVertex) void
void
Method parameters in graphql.schema.diffing with type arguments of type VertexModifier and TypeMethodDescriptionprivate void
DiffImpl.addChildToQueue
(int fixedEditorialCost, DiffImpl.MappingEntry parentEntry, PriorityQueue<DiffImpl.MappingEntry> queue, DiffImpl.OptimalEdit optimalEdit, List<Vertex> allSources, List<Vertex> allTargets) private void
DiffImpl.addSiblingToQueue
(int fixedEditorialCost, int level, PriorityQueue<DiffImpl.MappingEntry> queue, DiffImpl.OptimalEdit optimalEdit, List<Vertex> allSources, List<Vertex> allTargets, DiffImpl.MappingEntry mappingEntry) void
SchemaGraph.addVertices
(Collection<Vertex> vertices) private double
DiffImpl.calcLowerBoundMappingCost
(Vertex v, Vertex u, Mapping partialMapping, Map<Vertex, Double> isolatedVerticesCache, Map<Vertex, Vertex> nonFixedParentRestrictions) lower bound mapping cost between for v -> u in respect to a partial mapping.private void
PossibleMappingsCalculator.calcPossibleMappingImpl
(Collection<Vertex> currentSourceVertices, Collection<Vertex> currentTargetVertices, List<String> contextId, int contextIx, List<PossibleMappingsCalculator.VertexContextSegment> contexts, Set<Vertex> usedSourceVertices, Set<Vertex> usedTargetVertices, String typeNameForDebug) calc for the provided contextprivate void
PossibleMappingsCalculator.calcPossibleMappingImpl
(Collection<Vertex> currentSourceVertices, Collection<Vertex> currentTargetVertices, List<String> contextId, int contextIx, List<PossibleMappingsCalculator.VertexContextSegment> contexts, Set<Vertex> usedSourceVertices, Set<Vertex> usedTargetVertices, String typeNameForDebug) calc for the provided contextprivate void
DiffImpl.calculateRestOfChildren
(List<Vertex> availableTargetVertices, HungarianAlgorithm hungarianAlgorithm, double[][] costMatrixCopy, double editorialCostForMapping, Mapping partialMapping, Vertex v_i, int upperBound, int level, LinkedBlockingQueue<DiffImpl.MappingEntry> siblings) (package private) DiffImpl.OptimalEdit
DiffImpl.diffImpl
(Mapping startMapping, List<Vertex> allSources, List<Vertex> allTargets, AtomicInteger algoIterationCount) private void
DiffImpl.expandMappingAndUpdateOptimalMapping
(int fixedEditorialCost, int level, DiffImpl.OptimalEdit optimalEdit, List<Vertex> allSources, Mapping toExpand, int[] assignments, List<Vertex> availableTargetVertices, double lowerBoundCost) Extend the partial mapping to a full mapping according to the optimal matching (hungarian algo result) and update the optimal edit if we found a better one.SchemaGraph.findTargetVertex
(Vertex from, Predicate<Vertex> vertexPredicate) void
Mapping.forEachNonFixedSourceAndTarget
(BiConsumer<? super Vertex, ? super Vertex> consumer) void
Mapping.forEachNonFixedSourceAndTarget
(BiConsumer<? super Vertex, ? super Vertex> consumer) void
Mapping.forEachNonFixedTarget
(Consumer<? super Vertex> action) void
Mapping.forEachTarget
(Consumer<? super Vertex> action) SchemaGraph.getAdjacentEdges
(Vertex from, Predicate<Vertex> predicate) SchemaGraph.getAdjacentEdgesInverse
(Vertex to, Predicate<Vertex> predicate) SchemaGraph.getAdjacentVertices
(Vertex from, Predicate<Vertex> predicate) SchemaGraph.getAdjacentVerticesInverse
(Vertex to, Predicate<Vertex> predicate) SchemaGraph.getAllAdjacentEdges
(List<Vertex> fromList, Vertex to) PossibleMappingsCalculator.getFixedParentRestrictions
(SchemaGraph sourceGraph, List<Vertex> fixedSourceVertices, Map<Vertex, Vertex> fixedOneToOneMappings) This computes the initial set of parent restrictions based on the fixed portion of the mapping.PossibleMappingsCalculator.getFixedParentRestrictions
(SchemaGraph sourceGraph, List<Vertex> fixedSourceVertices, Map<Vertex, Vertex> fixedOneToOneMappings) This computes the initial set of parent restrictions based on the fixed portion of the mapping.PossibleMappingsCalculator.getFixedParentRestrictions
(SchemaGraph sourceGraph, List<Vertex> fixedSourceVertices, Map<Vertex, Vertex> fixedOneToOneMappings) This computes the initial set of parent restrictions based on the fixed portion of the mapping.PossibleMappingsCalculator.getFixedParentRestrictionsInverse
(Map<Vertex, Vertex> fixedOneToOneMappingsInverted) PossibleMappingsCalculator.getFixedParentRestrictionsInverse
(Map<Vertex, Vertex> fixedOneToOneMappingsInverted) static Mapping
Mapping.newMapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static Mapping
Mapping.newMapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static Mapping
Mapping.newMapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static Mapping
Mapping.newMapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static Mapping
Mapping.newMapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) void
PossibleMappingsCalculator.PossibleMappings.putPossibleMappings
(List<String> contextId, Collection<Vertex> sourceVertices, Collection<Vertex> targetVertices, String typeName) void
SchemaGraph.setVertices
(List<Vertex> vertices) private void
SchemaDiffing.sortVertices
(List<Vertex> vertices, SchemaGraph schemaGraph, PossibleMappingsCalculator.PossibleMappings possibleMappings) Constructors in graphql.schema.diffing with parameters of type VertexModifierConstructorDescriptionprivate
EditOperation
(EditOperation.Operation operation, String description, Vertex sourceVertex, Vertex targetVertex, Edge sourceEdge, Edge targetEdge) Constructor parameters in graphql.schema.diffing with type arguments of type VertexModifierConstructorDescriptionprivate
Mapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList, com.google.common.collect.BiMap<Vertex, Vertex> map, List<Vertex> sourceList, List<Vertex> targetList) private
Mapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList, com.google.common.collect.BiMap<Vertex, Vertex> map, List<Vertex> sourceList, List<Vertex> targetList) private
Mapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList, com.google.common.collect.BiMap<Vertex, Vertex> map, List<Vertex> sourceList, List<Vertex> targetList) private
Mapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList, com.google.common.collect.BiMap<Vertex, Vertex> map, List<Vertex> sourceList, List<Vertex> targetList) private
Mapping
(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList, com.google.common.collect.BiMap<Vertex, Vertex> map, List<Vertex> sourceList, List<Vertex> targetList) SchemaGraph
(List<Vertex> vertices, List<Edge> edges, com.google.common.collect.Table<Vertex, Vertex, Edge> edgeByVertexPair) SchemaGraph
(List<Vertex> vertices, List<Edge> edges, com.google.common.collect.Table<Vertex, Vertex, Edge> edgeByVertexPair) SchemaGraph
(List<Vertex> vertices, List<Edge> edges, com.google.common.collect.Table<Vertex, Vertex, Edge> edgeByVertexPair) -
Uses of Vertex in graphql.schema.diffing.ana
Methods in graphql.schema.diffing.ana with parameters of type VertexModifier and TypeMethodDescriptionprivate void
EditOperationAnalyzer.appliedDirectiveAddedToArgument
(Vertex appliedDirective, Vertex container) private void
EditOperationAnalyzer.appliedDirectiveAddedToField
(Vertex appliedDirective, Vertex container) private void
EditOperationAnalyzer.appliedDirectiveDeletedFromArgument
(Vertex appliedDirective, Vertex container) private void
EditOperationAnalyzer.appliedDirectiveDeletedFromField
(Vertex appliedDirective, Vertex container) private boolean
EditOperationAnalyzer.doesArgumentChangeMakeSense
(Vertex oldArgument, Vertex newArgument, Mapping mapping) Sometimes the diffing algorithm will give us an argument change when the argument container changed i.e.private EditOperation
EditOperationAnalyzer.findDeletedEdge
(Vertex targetVertexFrom, List<EditOperation> editOperations, Mapping mapping, Predicate<Edge> edgePredicate)