io.nosqlbench.virtdata.library.basics.shared.stateful.Save Maven / Gradle / Ivy
package io.nosqlbench.virtdata.library.basics.shared.stateful;
import io.nosqlbench.virtdata.api.annotations.Categories;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.annotations.Example;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import io.nosqlbench.virtdata.library.basics.core.threadstate.SharedState;
import java.util.HashMap;
import java.util.function.Function;
/**
* Save the current input value at this point in the function chain to a thread-local variable name.
* The input value is unchanged, and available for the next function in the chain to use as-is.
*/
@ThreadSafeMapper
@Categories({Category.state})
public class Save implements Function