Class OpsDocList

java.lang.Object
io.nosqlbench.adapters.api.activityconfig.yaml.OpsDocList
All Implemented Interfaces:
Iterable<OpsDoc>

public class OpsDocList extends Object implements Iterable<OpsDoc>
  • Field Details

  • Constructor Details

  • Method Details

    • none

      public static OpsDocList none()
    • getStmtDocs

      public List<OpsDoc> getStmtDocs(String tagFilter)
    • getStmtDocs

      public List<OpsDoc> getStmtDocs()
    • getOps

      public List<OpTemplate> getOps(boolean logit)
    • getOps

      public List<OpTemplate> getOps(String tagFilterSpec, boolean logit)
      Parameters:
      tagFilterSpec - a comma-separated tag filter spec
      Returns:
      The list of all included op templates for all included blocks of in this document, including the inherited and overridden values from this doc and the parent block.
    • iterator

      public Iterator<OpsDoc> iterator()
      Specified by:
      iterator in interface Iterable<OpsDoc>
    • getDocBindings

      public Map<String,String> getDocBindings()
      Return the list of all bindings combined across all docs, not including the block or statement level bindings.
      Returns:
      A map of all bindings at the doc level.
    • getDocScenarios

      public Scenarios getDocScenarios()
      Returns:
      the list of named scenarios for the first document in the list.
    • getDescription

      public String getDescription()
      Returns:
      the description of the first document in the list.
    • getTemplateVariables

      public Map<String,String> getTemplateVariables()
    • addTemplateVariable

      public void addTemplateVariable(String key, String defaultValue)
    • getConfigModel

      public NBConfigModel getConfigModel()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getVersionRegex

      public Pattern getVersionRegex()
    • applyModifier

      public int applyModifier(Consumer<OpTemplate> modifier)