OResultSet - elementStream()
Retrieves a stream of elements from the result-set.
Streaming Edges
In cases where your result-set contains a number of elements, some of which are vertices and some of which are edges, you can use this method to filter OResultSet to only return those records that are OElement instances.
Syntax
default Stream<OElement> OResultSet().elementStream()
Return Value
This method returns a Stream of OElement instances contained in the result-set.