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

io.nosqlbench.virtdata.library.basics.shared.unary_string.ReplaceRegexAutoDocsInfo 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.unary_string;

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.unary_string.ReplaceRegex"
)
public class ReplaceRegexAutoDocsInfo implements DocFuncData {
  public String getClassName() {
    return "ReplaceRegex";
  }

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

  public String getClassJavadoc() {
    return "Replace all occurrences of the regular expression with the replacement string.\n"
            + "Note, this is much less efficient than using the simple ReplaceAll for most cases.\n";
  }

  public String getInType() {
    return "java.lang.String";
  }

  public String getOutType() {
    return "java.lang.String";
  }

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

  public List getCtors() {
    return new ArrayList() {{
          add(new DocForFuncCtor("ReplaceRegex", "", 
            new LinkedHashMap() {{
              put("regex","java.lang.String");
              put("replacement","java.lang.String");
            }},
            new ArrayList>() {{
              add(new ArrayList() {{
                add("ReplaceRegex('[one]','two')");
                add("Replace all occurrences of 'o' or 'n' or 'e' with 'two'");
              }});
            }}
          ));
        }};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy