Class OpData
java.lang.Object
io.nosqlbench.adapters.api.activityconfig.yaml.OpTemplate
io.nosqlbench.adapters.api.activityconfig.yaml.OpData
-
Field Summary
Fields inherited from class io.nosqlbench.adapters.api.activityconfig.yaml.OpTemplate
FIELD_BINDINGS, FIELD_DESC, FIELD_NAME, FIELD_OP, FIELD_PARAMS, FIELD_REFKEY, FIELD_TAGS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.nosqlbench.adapters.api.activityconfig.yaml.OpTemplate
asData, assertConsumed, getOptionalStringParam, getOptionalStringParam, getParam, getParamOrDefault, getParamReader, getParamsAsValueType, getParsed, getParsed, remainingFields, removeParamOrDefault, size
-
Constructor Details
-
OpData
-
OpData
public OpData() -
OpData
-
-
Method Details
-
applyFields
-
getDesc
- Returns:
- a description for the op template, or an empty string
-
getName
- Returns:
- a name for the op template, user-specified or auto-generated
-
getTags
Description copied from class:OpTemplateReturn a map of tags for this statement. Implementations are required to add a tag for "name" automatically when this value is set during construction.- Specified by:
getTagsin interfaceOpTemplateProps- Specified by:
getTagsin interfaceTagged- Specified by:
getTagsin classOpTemplate- Returns:
- A map of assigned tags for the op, with the name added as an auto-tag.
-
getBindings
-
getParams
-
getOp
-
getStmt
Description copied from class:OpTemplateLegacy support for String form statements. This is left here as a convenience method, however it is changed to an Optional to force caller refactorings.- Specified by:
getStmtin interfaceOpTemplateProps- Overrides:
getStmtin classOpTemplate- Returns:
- An optional string version of the op, empty if there is no 'stmt' property in the op fields, or no op fields at all.
-
getRefKey
public int getRefKey()
-