Interface ValueMapTraversal
public interface ValueMapTraversal
The Graph Traversal that maps
Element.
This Traversal is lazy, in other words, that just run after the-
Method Summary
Modifier and TypeMethodDescriptionlongcount()Map the traversal next to its reduction as a sum of the elementsnext()Returns the next elements in the traversal.next(int limit) Get the next n-number of results from the traversal.Concludes the traversal then returns the result as list.Concludes the traversal that returns a single resultstream()Get all the result in the traversal as Stream
-
Method Details
-
stream
Get all the result in the traversal as Stream- Returns:
- the entity result as
Stream
-
next
Get the next n-number of results from the traversal.- Parameters:
limit- the limit to result- Returns:
- the entity result as
Stream
-
next
Returns the next elements in the traversal.- Returns:
- the map
-
singleResult
Concludes the traversal that returns a single result- Returns:
- the entity result otherwise
Optional.empty()
-
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
-