All Implemented Interfaces:
io.nosqlbench.engine.api.util.Tagged

public class RawStmtsDoc extends StatementsOwner
A statements doc can have both a list of statement blocks and/or a list of statements. It can also have all the block parameters assignable to RawStmtFields.

The reason for having support both statements or statement blocks is merely convenience. If you do not need or want to deal with the full blocks format, the extra structure gets in the way.

  • Constructor Details

    • RawStmtsDoc

      public RawStmtsDoc()
  • Method Details

    • forSingleStatement

      public static RawStmtsDoc forSingleStatement(String statement)
    • setFieldsByReflection

      public void setFieldsByReflection(Map<String,Object> properties)
      Overrides:
      setFieldsByReflection in class StatementsOwner
    • getBlocks

      public List<RawStmtsBlock> getBlocks()
      Return the list of statement blocks in this RawStmtsDoc. If raw statements are defined on this RawStmtsDoc, then a single StmtBlock containing those statements is prepended to the block list. Otherwise, the list of StmtBlocks is returned as-is.
      Returns:
      all logical statement blocks containing statements
    • setBlocks

      public void setBlocks(List<RawStmtsBlock> blocks)
    • getRawScenarios

      public RawScenarios getRawScenarios()
    • setScenarios

      public void setScenarios(RawScenarios scenarios)
    • getVersionRegex

      public String getVersionRegex()
    • setVersionRegex

      public void setVersionRegex(String regex)