Class StmtsDoc
java.lang.Object
io.nosqlbench.engine.api.activityconfig.yaml.StmtsDoc
- All Implemented Interfaces:
io.nosqlbench.engine.api.util.Tagged,java.lang.Iterable<StmtsBlock>
public class StmtsDoc extends java.lang.Object implements io.nosqlbench.engine.api.util.Tagged, java.lang.Iterable<StmtsBlock>
StmtsDoc creates a logical view of a statements doc that includes
all inherited and overridden values for bindings, tags, and params.
-
Constructor Summary
Constructors Constructor Description StmtsDoc(RawStmtsDoc rawStmtsDoc) -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getBindings()java.util.List<StmtsBlock>getBlocks()java.lang.StringgetDescription()java.lang.StringgetName()java.util.Map<java.lang.String,java.lang.Object>getParams()ScenariosgetScenarios()java.util.List<io.nosqlbench.engine.api.activityconfig.yaml.OpTemplate>getStmts()java.util.Map<java.lang.String,java.lang.String>getTags()java.util.Iterator<StmtsBlock>iterator()Allow StmtsDoc to be used in iterable loops.
-
Constructor Details
-
Method Details
-
getBlocks
- Returns:
- a usable list of blocks, including inherited bindings, params, and tags from the parent doc
-
getTags
public java.util.Map<java.lang.String,java.lang.String> getTags()- Specified by:
getTagsin interfaceio.nosqlbench.engine.api.util.Tagged- Returns:
- a usable map of tags, including those inherited from the parent doc
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()- Returns:
- a usable map of parameters, including those inherited from the parent doc
-
getBindings
public java.util.Map<java.lang.String,java.lang.String> getBindings()- Returns:
- a usable map of bindings, including those inherited from the parent doc
-
getName
public java.lang.String getName()- Returns:
- the name of this block
-
getStmts
public java.util.List<io.nosqlbench.engine.api.activityconfig.yaml.OpTemplate> getStmts()- Returns:
- The list of all included statements for all included block in this document, including the inherited and overridden values from the this doc and the parent block.
-
iterator
Allow StmtsDoc to be used in iterable loops.- Specified by:
iteratorin interfacejava.lang.Iterable<StmtsBlock>- Returns:
- An iterator of
StmtsBlock
-
getScenarios
-
getDescription
public java.lang.String getDescription()
-