io.nosqlbench.engine.api.activityconfig.rawyaml.RawYamlLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine-api Show documentation
Show all versions of engine-api Show documentation
The engine API for nosqlbench;
Provides the interfaces needed to build internal modules for the
nosqlbench core engine
package io.nosqlbench.engine.api.activityconfig.rawyaml;
import io.nosqlbench.engine.api.activityimpl.ActivityInitializationError;
import io.nosqlbench.engine.api.templating.StrInterpolator;
import io.nosqlbench.nb.api.content.Content;
import io.nosqlbench.nb.api.content.NBIO;
import io.nosqlbench.nb.api.errors.BasicError;
import org.apache.logging.log4j.Logger;
import org.yaml.snakeyaml.Yaml;
import java.util.*;
import java.util.function.Function;
public class RawYamlLoader {
public static String[] YAML_EXTENSIONS = new String[]{"yaml","yml"};
List> stringTransformers = new ArrayList<>();
private final ArrayList> transformers = new ArrayList<>();
private void addTransformer(Function newTransformer) {
Collections.addAll(this.transformers, newTransformer);
}
public RawYamlLoader() {
addTransformer(new StrInterpolator());
}
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy