Class RawStmtsDoc
java.lang.Object
io.nosqlbench.engine.api.activityconfig.rawyaml.Tags
io.nosqlbench.engine.api.activityconfig.rawyaml.RawStmtFields
io.nosqlbench.engine.api.activityconfig.rawyaml.StatementsOwner
io.nosqlbench.engine.api.activityconfig.rawyaml.RawStmtsDoc
- All Implemented Interfaces:
io.nosqlbench.engine.api.util.Tagged
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RawStmtsDocforSingleStatement(String statement) Return the list of statement blocks in this RawStmtsDoc.voidsetBlocks(List<RawStmtsBlock> blocks) voidsetFieldsByReflection(Map<String, Object> properties) voidsetScenarios(RawScenarios scenarios) voidsetVersionRegex(String regex) Methods inherited from class io.nosqlbench.engine.api.activityconfig.rawyaml.StatementsOwner
getRawStmtDefs, setRawStmtDefs, setStatementsFieldByTypeMethods inherited from class io.nosqlbench.engine.api.activityconfig.rawyaml.RawStmtFields
applyBlockParams, getBindings, getDesc, getName, getParams, setBindings, setDesc, setDescription, setName, setParams
-
Constructor Details
-
RawStmtsDoc
public RawStmtsDoc()
-
-
Method Details
-
forSingleStatement
-
setFieldsByReflection
- Overrides:
setFieldsByReflectionin classStatementsOwner
-
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
-
getRawScenarios
-
setScenarios
-
getVersionRegex
-
setVersionRegex
-