Class NodeQueries

  • All Implemented Interfaces:
    com.expediagroup.graphql.server.operations.Query

    
    public final class NodeQueries<T extends Object, P extends Position<out P>>
     implements Query
                        

    Set of GraphQL queries to compute on nodes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final PositionSurrogate nodePosition(Integer nodeId) Returns the node position in sapce.
      final NeighborhoodSurrogate<T> neighborhood(Integer nodeId) Returns the neighborhood with the provided node as a center.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • nodePosition

         final PositionSurrogate nodePosition(Integer nodeId)

        Returns the node position in sapce.

        Parameters:
        nodeId - the node id
        Returns:

        the position in space of the given node

      • neighborhood

         final NeighborhoodSurrogate<T> neighborhood(Integer nodeId)

        Returns the neighborhood with the provided node as a center.

        Parameters:
        nodeId - the neighborhood center's node id.
        Returns:

        the neighborhood with this node as a center