
redis.clients.jedis.search.aggr.Reducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.search.aggr;
import java.util.List;
import redis.clients.jedis.search.SearchProtocol.SearchKeyword;
/**
* Created by mnunberg on 2/22/18.
*
* This class is normally received via one of the subclasses or via Reducers
*/
public abstract class Reducer {
private final String name;
private final String field;
private String alias;
protected Reducer(String name) {
this.name = name;
this.field = null;
}
protected Reducer(String name, String field) {
this.name = name;
this.field = field;
}
public final Reducer as(String alias) {
this.alias = alias;
return this;
}
public final String getName() {
return name;
}
public final String getField() {
return field;
}
public final String getAlias() {
return alias;
}
protected abstract List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy