-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support FT.PROFILE command * edit * Support recursive child iterators * Test single child iterator * Test profile expansion * Test vector similarity * Support LIMITED option * Support 'Child iterator' in reply irrespective of RediSearch/RediSearch#3205 getting addressed.
- Loading branch information
Showing
9 changed files
with
417 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/redis/clients/jedis/search/FTProfileParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package redis.clients.jedis.search; | ||
|
||
import static redis.clients.jedis.search.SearchProtocol.SearchKeyword.LIMITED; | ||
|
||
import redis.clients.jedis.CommandArguments; | ||
import redis.clients.jedis.params.IParams; | ||
|
||
public class FTProfileParams implements IParams { | ||
|
||
private boolean limited; | ||
|
||
public FTProfileParams() { | ||
} | ||
|
||
public static FTProfileParams profileParams() { | ||
return new FTProfileParams(); | ||
} | ||
|
||
/** | ||
* Removes details of {@code reader} iterator. | ||
*/ | ||
public FTProfileParams limited() { | ||
this.limited = true; | ||
return this; | ||
} | ||
|
||
@Override | ||
public void addParams(CommandArguments args) { | ||
|
||
if (limited) { | ||
args.add(LIMITED); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.