redis.clients.jedis.search.FTProfileParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
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);
}
}
}