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 VertexEdge.fromprivate VertexEditOperation.sourceVertexprivate VertexEditOperation.targetVertexprivate VertexEdge.toFields in graphql.schema.diffing with type parameters of type VertexModifier and TypeFieldDescriptionPossibleMappingsCalculator.PossibleMappings.allIsolatedSourcePossibleMappingsCalculator.PossibleMappings.allIsolatedTargetDiffImpl.MappingEntry.availableTargetVerticesThese are the available vertices, relative to the parent mapping.PossibleMappingsCalculator.PossibleMappings.contextsPossibleMappingsCalculator.PossibleMappings.contextsSchemaGraph.directivesByNameSchemaGraph.edgesByDirectionSchemaGraph.edgesByDirectionSchemaGraph.edgesByInverseDirectionSchemaGraph.edgesByInverseDirectionMapping.fixedMappingsMapping.fixedMappingsPossibleMappingsCalculator.PossibleMappings.fixedOneToOneMappingsPossibleMappingsCalculator.PossibleMappings.fixedOneToOneMappingsPossibleMappingsCalculator.PossibleMappings.fixedOneToOneSourcesPossibleMappingsCalculator.PossibleMappings.fixedOneToOneTargetsMapping.fixedParentRestrictionsMapping.fixedParentRestrictionsMapping.fixedSourceListMapping.fixedTargetListMapping.mapMapping.mapPossibleMappingsCalculator.PossibleMappings.possibleMappingsPossibleMappingsCalculator.PossibleMappings.possibleMappingsMapping.sourceListMapping.targetListSchemaGraph.typesByNameSchemaGraph.typeToVerticesSchemaGraph.verticesMethods 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 VertexSchemaGraphFactory.newArgument(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode) private VertexSchemaGraphFactory.newField(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode) private VertexSchemaGraphFactory.newInputField(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode) static VertexVertex.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 TypeMethodDescriptionvoidvoidSchemaGraph.addDirective(String name, Vertex vertex) voidvoidintSchemaGraph.adjacentEdgesAndInverseCount(Vertex fromAndTo) private intDiffImpl.calcAnchoredVerticesCost(Vertex v, Vertex u, Mapping partialMapping) private doubleDiffImpl.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 doubleDiffImpl.calcLowerBoundMappingCostForIsolated(Vertex vertex, Mapping partialMapping, boolean sourceOrTarget) Simplified lower bound calc if the source/target vertex is isolatedprivate voidDiffImpl.calculateRestOfChildren(List<Vertex> availableTargetVertices, HungarianAlgorithm hungarianAlgorithm, double[][] costMatrixCopy, double editorialCostForMapping, Mapping partialMapping, Vertex v_i, int upperBound, int level, LinkedBlockingQueue<DiffImpl.MappingEntry> siblings) static EditOperationEditOperation.changeVertex(String description, Vertex sourceVertex, Vertex targetVertex) booleanbooleanMapping.containsSource(Vertex sourceVertex) booleanMapping.containsTarget(Vertex targetVertex) private voidSchemaGraphFactory.createAppliedDirectives(Vertex from, List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph) static EditOperationEditOperation.deleteVertex(String description, Vertex sourceVertex, Vertex targetVertex) Mapping.extendMapping(Vertex source, Vertex target) booleanPossibleMappingsCalculator.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) intSchemaGraph.getAppliedDirectiveIndex(Vertex appliedDirective) @Nullable Edge@Nullable EdgeSchemaGraph.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 voidSchemaGraphFactory.handleArgument(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph) private voidSchemaGraphFactory.handleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private voidSchemaGraphFactory.handleUnion(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) static booleanPossibleMappingsCalculator.hasChildrenRestrictions(Vertex vertex) booleanMapping.hasParentRestriction(Vertex v) static booleanPossibleMappingsCalculator.hasParentRestrictions(Vertex vertex) abstract StringPossibleMappingsCalculator.VertexContextSegment.idForVertex(Vertex vertex, SchemaGraph schemaGraph) static EditOperationEditOperation.insertVertex(String description, Vertex sourceVertex, Vertex targetVertex) booleanbooleanPossibleMappingsCalculator.PossibleMappings.mappingPossible(Vertex sourceVertex, Vertex targetVertex) voidvoidMethod parameters in graphql.schema.diffing with type arguments of type VertexModifier and TypeMethodDescriptionprivate voidDiffImpl.addChildToQueue(int fixedEditorialCost, DiffImpl.MappingEntry parentEntry, PriorityQueue<DiffImpl.MappingEntry> queue, DiffImpl.OptimalEdit optimalEdit, List<Vertex> allSources, List<Vertex> allTargets) private voidDiffImpl.addSiblingToQueue(int fixedEditorialCost, int level, PriorityQueue<DiffImpl.MappingEntry> queue, DiffImpl.OptimalEdit optimalEdit, List<Vertex> allSources, List<Vertex> allTargets, DiffImpl.MappingEntry mappingEntry) voidSchemaGraph.addVertices(Collection<Vertex> vertices) private doubleDiffImpl.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 voidPossibleMappingsCalculator.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 voidPossibleMappingsCalculator.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 voidDiffImpl.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.OptimalEditDiffImpl.diffImpl(Mapping startMapping, List<Vertex> allSources, List<Vertex> allTargets, AtomicInteger algoIterationCount) private voidDiffImpl.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) voidMapping.forEachNonFixedSourceAndTarget(BiConsumer<? super Vertex, ? super Vertex> consumer) voidMapping.forEachNonFixedSourceAndTarget(BiConsumer<? super Vertex, ? super Vertex> consumer) voidMapping.forEachNonFixedTarget(Consumer<? super Vertex> action) voidMapping.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 MappingMapping.newMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static MappingMapping.newMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static MappingMapping.newMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static MappingMapping.newMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) static MappingMapping.newMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) voidPossibleMappingsCalculator.PossibleMappings.putPossibleMappings(List<String> contextId, Collection<Vertex> sourceVertices, Collection<Vertex> targetVertices, String typeName) voidSchemaGraph.setVertices(List<Vertex> vertices) private voidSchemaDiffing.sortVertices(List<Vertex> vertices, SchemaGraph schemaGraph, PossibleMappingsCalculator.PossibleMappings possibleMappings) Constructors in graphql.schema.diffing with parameters of type VertexModifierConstructorDescriptionprivateEditOperation(EditOperation.Operation operation, String description, Vertex sourceVertex, Vertex targetVertex, Edge sourceEdge, Edge targetEdge) Constructor parameters in graphql.schema.diffing with type arguments of type VertexModifierConstructorDescriptionprivateMapping(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) privateMapping(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) privateMapping(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) privateMapping(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) privateMapping(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 voidEditOperationAnalyzer.appliedDirectiveAddedToArgument(Vertex appliedDirective, Vertex container) private voidEditOperationAnalyzer.appliedDirectiveAddedToField(Vertex appliedDirective, Vertex container) private voidEditOperationAnalyzer.appliedDirectiveDeletedFromArgument(Vertex appliedDirective, Vertex container) private voidEditOperationAnalyzer.appliedDirectiveDeletedFromField(Vertex appliedDirective, Vertex container) private booleanEditOperationAnalyzer.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 EditOperationEditOperationAnalyzer.findDeletedEdge(Vertex targetVertexFrom, List<EditOperation> editOperations, Mapping mapping, Predicate<Edge> edgePredicate)