All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.virtdata.library.basics.shared.stateful.SaveIntegerAutoDocsInfo Maven / Gradle / Ivy

There is a newer version: 5.17.0
Show newest version
// This file is auto-generated.
package io.nosqlbench.virtdata.library.basics.shared.stateful;

import io.nosqlbench.nb.annotations.Service;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.processors.DocCtorData;
import io.nosqlbench.virtdata.api.processors.DocForFuncCtor;
import io.nosqlbench.virtdata.api.processors.DocFuncData;
import java.lang.String;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

@Service(
    value = DocFuncData.class,
    selector = "io.nosqlbench.virtdata.library.basics.shared.stateful.SaveInteger"
)
public class SaveIntegerAutoDocsInfo implements DocFuncData {
  public String getClassName() {
    return "SaveInteger";
  }

  public String getPackageName() {
    return "io.nosqlbench.virtdata.library.basics.shared.stateful";
  }

  public String getClassJavadoc() {
    return "Save a value to a named thread-local variable, where the variable\n"
            + "name is fixed or a generated variable name from a provided function.\n"
            + "Note that the input type is not that suitable for constructing names,\n"
            + "so this is more likely to be used in an indirect naming pattern like\n"
            + "SaveInteger(Load('id'))\n";
  }

  public String getInType() {
    return "int";
  }

  public String getOutType() {
    return "int";
  }

  public Category[] getCategories() {
    return new Category[] { Category.state };
  }

  public List getCtors() {
    return new ArrayList() {{
          add(new DocForFuncCtor("SaveInteger", "", 
            new LinkedHashMap() {{
              put("name","java.lang.String");
            }},
            new ArrayList>() {{
              add(new ArrayList() {{
                add("SaveInteger('foo')");
                add("save the current integer value to a named variable in this thread.");
              }});
            }}
          ));
          add(new DocForFuncCtor("SaveInteger", "", 
            new LinkedHashMap() {{
              put("nameFunc","java.util.function.Function");
            }},
            new ArrayList>() {{
              add(new ArrayList() {{
                add("SaveInteger(NumberNameToString())");
                add("save the current integer value to a named variable in this thread, where the variable name is provided by a function.");
              }});
            }}
          ));
        }};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy