redis.clients.jedis.search.aggr.Group 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.aggr;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by mnunberg on 2/22/18.
*/
public class Group {
private final List fields = new ArrayList<>();
private final List reducers = new ArrayList<>();
public Group(String... fields) {
this.fields.addAll(Arrays.asList(fields));
}
public Group reduce(Reducer r) {
reducers.add(r);
return this;
}
public void addArgs(List