org.dflib.exp.agg.StringAggregators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dflib Show documentation
Show all versions of dflib Show documentation
dflib: DataFrame library
package org.dflib.exp.agg;
import org.dflib.Series;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* @since 0.11
*/
public class StringAggregators {
public static Function, String> vConcat(String delimiter) {
return CollectorAggregator.create(Collectors.joining(delimiter), String::valueOf);
}
public static Function, String> vConcat(String delimiter, String prefix, String suffix) {
return CollectorAggregator.create(Collectors.joining(delimiter, prefix, suffix), String::valueOf);
}
}