Class BasicScriptBuffer
java.lang.Object
io.nosqlbench.engine.cmdstream.BasicScriptBuffer
- All Implemented Interfaces:
ScriptBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(BasicScriptBuffer buf) Add parsed commands to the script bufferstatic StringGet a map which contains all of the params which came from commands of global scope, likescriptandfragmentcommands.Get the text image of the combined script with all previously added commands includedstatic StringloadScript(Cmd cmd)
-
Constructor Details
-
BasicScriptBuffer
public BasicScriptBuffer()
-
-
Method Details
-
getCommands
- Specified by:
getCommandsin interfaceScriptBuffer
-
add
-
add
-
add
Description copied from interface:ScriptBufferAdd parsed commands to the script buffer- Specified by:
addin interfaceScriptBuffer- Parameters:
cmds- A parsed command- Returns:
- This ScriptBuffer
-
getParsedScript
Description copied from interface:ScriptBufferGet the text image of the combined script with all previously added commands included- Specified by:
getParsedScriptin interfaceScriptBuffer- Returns:
- The script text
-
getCombinedParams
Description copied from interface:ScriptBufferGet a map which contains all of the params which came from commands of global scope, likescriptandfragmentcommands. If one of these commands overwrites a named parameter from another, an error should be logged at warning or higher level.- Specified by:
getCombinedParamsin interfaceScriptBuffer- Returns:
- A globa params map.
-
assemble
-
loadScript
-
add
-