All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.virtdata.api.VirtDataFunctionFinder Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.api;

import io.nosqlbench.virtdata.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 - 2024 Weber Informatics LLC | Privacy Policy