io.nosqlbench.virtdata.library.basics.shared.stateful.LoadElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-curves4 Show documentation
Show all versions of virtdata-lib-curves4 Show documentation
Statistical sampling library for use in virtdata libraries, based
on apache commons math 4
package io.nosqlbench.virtdata.library.basics.shared.stateful;
import io.nosqlbench.virtdata.api.annotations.Example;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import io.nosqlbench.virtdata.core.config.ConfigAware;
import io.nosqlbench.virtdata.core.config.ConfigModel;
import io.nosqlbench.virtdata.core.config.MutableConfigModel;
import java.util.Map;
import java.util.function.Function;
/**
* Load a value from a map, based on the injected configuration.
* The map which is used must be named by the mapname.
* If the injected configuration contains a variable of this name
* which is also a Map, then this map is referenced and read
* by the provided variable name.
*/
@ThreadSafeMapper
public class LoadElement implements Function