Class BasicScriptBuffer

java.lang.Object
io.nosqlbench.engine.cmdstream.BasicScriptBuffer
All Implemented Interfaces:
ScriptBuffer

public class BasicScriptBuffer extends Object implements ScriptBuffer
  • Constructor Details

    • BasicScriptBuffer

      public BasicScriptBuffer()
  • Method Details

    • getCommands

      public List<Cmd> getCommands()
      Specified by:
      getCommands in interface ScriptBuffer
    • add

      public ScriptBuffer add(BasicScriptBuffer buf)
    • add

      public ScriptBuffer add(Cmd cmd)
    • add

      public ScriptBuffer add(Cmd... cmds)
      Description copied from interface: ScriptBuffer
      Add parsed commands to the script buffer
      Specified by:
      add in interface ScriptBuffer
      Parameters:
      cmds - A parsed command
      Returns:
      This ScriptBuffer
    • getParsedScript

      public String getParsedScript()
      Description copied from interface: ScriptBuffer
      Get the text image of the combined script with all previously added commands included
      Specified by:
      getParsedScript in interface ScriptBuffer
      Returns:
      The script text
    • getCombinedParams

      public Map<String,String> getCombinedParams()
      Description copied from interface: ScriptBuffer
      Get a map which contains all of the params which came from commands of global scope, like script and fragment commands. If one of these commands overwrites a named parameter from another, an error should be logged at warning or higher level.
      Specified by:
      getCombinedParams in interface ScriptBuffer
      Returns:
      A globa params map.
    • assemble

      public static String assemble(List<Cmd> cmds)
    • loadScript

      public static String loadScript(Cmd cmd)
    • add

      public BasicScriptBuffer add(String script)