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

redis.clients.jedis.search.schemafields.SchemaField Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package redis.clients.jedis.search.schemafields;

import redis.clients.jedis.params.IParams;
import redis.clients.jedis.search.FieldName;

public abstract class SchemaField implements IParams {

  protected final FieldName fieldName;

  public SchemaField(String fieldName) {
    this.fieldName = new FieldName(fieldName);
  }

  public SchemaField(FieldName fieldName) {
    this.fieldName = fieldName;
  }

  public SchemaField as(String attribute) {
    fieldName.as(attribute);
    return this;
  }

  public final FieldName getFieldName() {
    return fieldName;
  }

  public final String getName() {
    return fieldName.getName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy