All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.search.FTProfileParams Maven / Gradle / Ivy

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);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy