Class OpData

java.lang.Object
io.nosqlbench.adapters.api.activityconfig.yaml.OpTemplate
io.nosqlbench.adapters.api.activityconfig.yaml.OpData
All Implemented Interfaces:
OpTemplateProps, Tagged

public class OpData extends OpTemplate
  • Constructor Details

  • Method Details

    • applyFields

      public OpData applyFields(Map<String,Object> opdata)
    • getDesc

      public String getDesc()
      Returns:
      a description for the op template, or an empty string
    • getName

      public String getName()
      Returns:
      a name for the op template, user-specified or auto-generated
    • getTags

      public Map<String,String> getTags()
      Description copied from class: OpTemplate
      Return 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:
      getTags in interface OpTemplateProps
      Specified by:
      getTags in interface Tagged
      Specified by:
      getTags in class OpTemplate
      Returns:
      A map of assigned tags for the op, with the name added as an auto-tag.
    • getBindings

      public Map<String,String> getBindings()
    • getParams

      public Map<String,Object> getParams()
    • getOp

      public Optional<Map<String,Object>> getOp()
    • getStmt

      public Optional<String> getStmt()
      Description copied from class: OpTemplate
      Legacy 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:
      getStmt in interface OpTemplateProps
      Overrides:
      getStmt in class OpTemplate
      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()