Class: Redis::Commands::Search::Cursor
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/redis/commands/modules/search/aggregation.rb |
Overview
Represents an FT.CURSOR read for paging through aggregation results.
Class Method Summary
- .new(cid) ⇒ Cursor constructor
Instance Attribute Summary
Instance Method Summary
-
#build_args ⇒ Array<String>
Render the cursor arguments for
FT.CURSOR READ.
Constructor Details
.new(cid) ⇒ Cursor
Instance Attribute Details
#cid ⇒ Integer (rw)
# File 'lib/redis/commands/modules/search/aggregation.rb', line 399
attr_accessor :cid, :count
#count ⇒ Integer (rw)
# File 'lib/redis/commands/modules/search/aggregation.rb', line 399
attr_accessor :cid, :count
Instance Method Details
#build_args ⇒ Array<String>
Render the cursor arguments for FT.CURSOR READ.
# File 'lib/redis/commands/modules/search/aggregation.rb', line 410
def build_args args = [@cid.to_s] args.concat(["COUNT", @count.to_s]) if @count > 0 args end