Interface ValueMapTraversal


public interface ValueMapTraversal
The Graph Traversal that maps Element. This Traversal is lazy, in other words, that just run after the
  • Method Details

    • stream

      Stream<Map<String,Object>> stream()
      Get all the result in the traversal as Stream
      Returns:
      the entity result as Stream
    • next

      Stream<Map<String,Object>> next(int limit)
      Get the next n-number of results from the traversal.
      Parameters:
      limit - the limit to result
      Returns:
      the entity result as Stream
    • next

      Map<String,Object> next()
      Returns the next elements in the traversal.
      Returns:
      the map
    • singleResult

      Optional<Map<String,Object>> singleResult()
      Concludes the traversal that returns a single result
      Returns:
      the entity result otherwise Optional.empty()
    • resultList

      List<Map<String,Object>> resultList()
      Concludes the traversal then returns the result as list.
      Returns:
      the maps result
    • count

      long count()
      Map the traversal next to its reduction as a sum of the elements
      Returns:
      the sum