io.nosqlbench.virtdata.library.realer.LastNamesAutoDocsInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
// This file is auto-generated.
package io.nosqlbench.virtdata.library.realer;
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.realer.LastNames"
)
public class LastNamesAutoDocsInfo implements DocFuncData {
public String getClassName() {
return "LastNames";
}
public String getPackageName() {
return "io.nosqlbench.virtdata.library.realer";
}
public String getClassJavadoc() {
return "Return a pseudo-randomly sampled last name from the last US census data on last names\n"
+ "occurring more than 100 times.\n";
}
public String getInType() {
return "long";
}
public String getOutType() {
return "java.lang.String";
}
public Category[] getCategories() {
return new Category[] { Category.premade };
}
public List getCtors() {
return new ArrayList() {{
add(new DocForFuncCtor("LastNames", "",
new LinkedHashMap() {{
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LastNames()");
add("select a random last name based on the chance of seeing it in the census data");
}});
}}
));
add(new DocForFuncCtor("LastNames", "",
new LinkedHashMap() {{
put("modifier","java.lang.String");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LastNames('map')");
add("select over the last names by probability as input varies from 1L to Long.MAX_VALUE");
}});
}}
));
}};
}
}