io.nosqlbench.virtdata.core.bindings.VirtDataFunctionFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package io.nosqlbench.virtdata.core.bindings;
import io.nosqlbench.virtdata.api.processors.DocFuncData;
import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;
import java.util.stream.Collectors;
public class VirtDataFunctionFinder {
public VirtDataFunctionFinder() {
}
public List getFunctionNames() {
ServiceLoader loader =ServiceLoader.load(DocFuncData.class);
List names = new ArrayList<>();
loader.iterator().forEachRemaining(d -> names.add(d.getPackageName() + "." + d.getClassName()));
List cleaned = names.stream().sorted().distinct().collect(Collectors.toList());
return cleaned;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy