Interface NeighborNode.Builder

  • Method Details

    • nodeId

      NeighborNode.Builder nodeId(String nodeId)

      Unique identifier of the neighbor node.

      Parameters:
      nodeId - Unique identifier of the neighbor node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      NeighborNode.Builder properties(Map<String,AnyValue> properties)

      Arbitrary key-value properties stored on this neighbor node.

      Parameters:
      properties - Arbitrary key-value properties stored on this neighbor node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • depth

      The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).

      Parameters:
      depth - The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathEdges

      NeighborNode.Builder pathEdges(Collection<PathEdge> pathEdges)

      The edges along the path from the seed node to this neighbor, preserving traversal order.

      Parameters:
      pathEdges - The edges along the path from the seed node to this neighbor, preserving traversal order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathEdges

      NeighborNode.Builder pathEdges(PathEdge... pathEdges)

      The edges along the path from the seed node to this neighbor, preserving traversal order.

      Parameters:
      pathEdges - The edges along the path from the seed node to this neighbor, preserving traversal order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathEdges

      The edges along the path from the seed node to this neighbor, preserving traversal order.

      This is a convenience method that creates an instance of the PathEdge.Builder avoiding the need to create one manually via PathEdge.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to pathEdges(List<PathEdge>).

      Parameters:
      pathEdges - a consumer that will call methods on PathEdge.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: