Class BasicScriptBuffer

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

public class BasicScriptBuffer
extends java.lang.Object
implements ScriptBuffer
  • Constructor Summary

    Constructors 
    Constructor Description
    BasicScriptBuffer()  
    BasicScriptBuffer​(java.lang.String createPath)  
  • Method Summary

    Modifier and Type Method Description
    ScriptBuffer add​(Cmd cmd)  
    ScriptBuffer add​(Cmd... cmds)
    Add parsed commands to the script buffer
    static java.lang.String assemble​(NBCLIOptions options)  
    java.util.Map<java.lang.String,​java.lang.String> getCombinedParams()
    Get a map which contains all of the params which came from commands of global scope, like script and fragment commands.
    java.lang.String getParsedScript()
    Get the text image of the combined script with all previously added commands included
    static java.lang.String loadScript​(Cmd cmd)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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 java.lang.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 java.util.Map<java.lang.String,​java.lang.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 java.lang.String assemble​(NBCLIOptions options)
    • loadScript

      public static java.lang.String loadScript​(Cmd cmd)