
com.redislabs.mesclun.search.aggregate.reducers.CountDistinctish Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mesclun Show documentation
Show all versions of mesclun Show documentation
Java client for Redis Labs module
The newest version!
package com.redislabs.mesclun.search.aggregate.reducers;
import com.redislabs.mesclun.search.protocol.CommandKeyword;
import com.redislabs.mesclun.search.protocol.RediSearchCommandArgs;
public class CountDistinctish extends AbstractPropertyReducer {
private CountDistinctish(String as, String property) {
super(as, property);
}
@SuppressWarnings("rawtypes")
@Override
protected void buildFunction(RediSearchCommandArgs args) {
args.add(CommandKeyword.COUNT_DISTINCTISH);
args.add(1);
args.addProperty(property);
}
public static CountDistinctishBuilder property(String property) {
return new CountDistinctishBuilder(property);
}
public static class CountDistinctishBuilder extends PropertyReducerBuilder {
public CountDistinctishBuilder(String property) {
super(property);
}
public CountDistinctish build() {
return new CountDistinctish(as, property);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy