30
30
import redis .clients .jedis .search .*;
31
31
import redis .clients .jedis .search .aggr .AggregationBuilder ;
32
32
import redis .clients .jedis .search .aggr .AggregationResult ;
33
- import redis .clients .jedis .search .aggr .FtAggregateRoundRobin ;
33
+ import redis .clients .jedis .search .aggr .FtAggregateIteration ;
34
34
import redis .clients .jedis .search .schemafields .SchemaField ;
35
35
import redis .clients .jedis .timeseries .*;
36
36
import redis .clients .jedis .util .IOUtils ;
@@ -595,12 +595,23 @@ public ScanResult<String> scan(String cursor, ScanParams params, String type) {
595
595
return executeCommand (commandObjects .scan (cursor , params , type ));
596
596
}
597
597
598
- public ScanRoundRobin scan (int batchCount , String match ) {
599
- return new ScanRoundRobin (provider , batchCount , match );
598
+ /**
599
+ * @param batchCount COUNT for each batch execution
600
+ * @param match pattern
601
+ * @return scan iteration
602
+ */
603
+ public ScanIteration scanIteration (int batchCount , String match ) {
604
+ return new ScanIteration (provider , batchCount , match );
600
605
}
601
606
602
- public ScanRoundRobin scan (int batchCount , String match , String type ) {
603
- return new ScanRoundRobin (provider , batchCount , match , type );
607
+ /**
608
+ * @param batchCount COUNT for each batch execution
609
+ * @param match pattern
610
+ * @param type key type
611
+ * @return scan iteration
612
+ */
613
+ public ScanIteration scanIteration (int batchCount , String match , String type ) {
614
+ return new ScanIteration (provider , batchCount , match , type );
604
615
}
605
616
606
617
@ Override
@@ -3559,14 +3570,14 @@ public SearchResult ftSearch(String indexName, String query, FTSearchParams para
3559
3570
3560
3571
/**
3561
3572
* {@link FTSearchParams#limit(int, int)} will be ignored.
3562
- * @param batchSize
3563
- * @param indexName
3564
- * @param query
3573
+ * @param batchSize batch size
3574
+ * @param indexName index name
3575
+ * @param query query
3565
3576
* @param params limit will be ignored
3566
- * @return search
3577
+ * @return search iteration
3567
3578
*/
3568
- public FtSearchRoundRobin ftSearch (int batchSize , String indexName , String query , FTSearchParams params ) {
3569
- return new FtSearchRoundRobin (provider , batchSize , indexName , query , params );
3579
+ public FtSearchIteration ftSearchIteration (int batchSize , String indexName , String query , FTSearchParams params ) {
3580
+ return new FtSearchIteration (provider , batchSize , indexName , query , params );
3570
3581
}
3571
3582
3572
3583
@ Override
@@ -3576,13 +3587,13 @@ public SearchResult ftSearch(String indexName, Query query) {
3576
3587
3577
3588
/**
3578
3589
* {@link Query#limit(java.lang.Integer, java.lang.Integer)} will be ignored.
3579
- * @param batchSize
3580
- * @param indexName
3590
+ * @param batchSize batch size
3591
+ * @param indexName index name
3581
3592
* @param query limit will be ignored
3582
- * @return search
3593
+ * @return search iteration
3583
3594
*/
3584
- public FtSearchRoundRobin ftSearch (int batchSize , String indexName , Query query ) {
3585
- return new FtSearchRoundRobin (provider , batchSize , indexName , query );
3595
+ public FtSearchIteration ftSearchIteration (int batchSize , String indexName , Query query ) {
3596
+ return new FtSearchIteration (provider , batchSize , indexName , query );
3586
3597
}
3587
3598
3588
3599
@ Override
@@ -3615,8 +3626,14 @@ public String ftCursorDel(String indexName, long cursorId) {
3615
3626
return executeCommand (commandObjects .ftCursorDel (indexName , cursorId ));
3616
3627
}
3617
3628
3618
- public FtAggregateRoundRobin ftAggregateRoundRobin (String indexName , AggregationBuilder aggr ) {
3619
- return new FtAggregateRoundRobin (provider , indexName , aggr );
3629
+ /**
3630
+ * {@link AggregationBuilder#cursor(int, long) CURSOR} must be set.
3631
+ * @param indexName index name
3632
+ * @param aggr cursor must be set
3633
+ * @return aggregate iteration
3634
+ */
3635
+ public FtAggregateIteration ftAggregateIteration (String indexName , AggregationBuilder aggr ) {
3636
+ return new FtAggregateIteration (provider , indexName , aggr );
3620
3637
}
3621
3638
3622
3639
@ Override
0 commit comments