struct Redis::Graph::ResultSet(T)
- Redis::Graph::ResultSet(T)
- Struct
- Value
- Object
Included Modules
- Enumerable(T)
Defined in:
graph.crConstructors
Instance Method Summary
-
#cached_execution? : Bool
Indicates whether the query was cached by RedisGraph
-
#duration : Time::Span
How long it took RedisGraph to execute the query on the server side.
-
#each(&)
Must yield this collection's elements to the block.
-
#each_row(&)
Iterate over each of the results, yielding a tuple containing instances of the types in
T
. -
#fields : Array(String)
The names of the fields in a query's
RETURN
clause - #indices_created : Int64
- #indices_deleted : Int64
-
#labels_added : Int64
How many labels were added in this query
-
#labels_removed : Int64
How many labels were removed in this query
-
#nodes_created : Int64
How many nodes were created in this query
-
#nodes_deleted : Int64
How many nodes were deleted in this query
-
#properties_removed : Int64
How many properties were removed in this query
-
#properties_set : Int64
How many properties were set in this query
-
#relationships_created : Int64
How many relationships were created in this query
-
#relationships_deleted : Int64
How many relationships were deleted in this query
-
#rows : Array(T)
The values of the fields in a query's
RETURN
clause -
#size
Returns the number of elements in the collection.
Constructor Detail
Instance Method Detail
Must yield this collection's elements to the block.
Iterate over each of the results, yielding a tuple containing instances
of the types in T
.
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4