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

io.nosqlbench.virtdata.processors.ExampleDocData Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.processors;

import io.nosqlbench.virtdata.annotations.Category;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * Example class doc.
 *
 * Example unordered list:
 * 
    *
  • An item1
  • *
  • An item2
  • *
* * An example class doc paragraph. * */ public class ExampleDocData implements DocFuncData { @Override public String getPackageName() { return "packagename"; } @Override public Category[] getCategories() { return new Category[] { Category.general }; } @Override public String getClassName() { return "classname"; } @Override public String getClassJavadoc() { return "javadoc"; } @Override public String getInType() { return "intype"; } @Override public String getOutType() { return "outtype"; } @Override public List getCtors() { ArrayList ctors = new ArrayList<>(); // for each ctor LinkedHashMap args = new LinkedHashMap<>(); args.put("arg1", "val1"); List> examples = new ArrayList<>(); examples.add(new ArrayList<>() {{ add("example"); add("one"); }}); DocForFuncCtor ctordoc = new DocForFuncCtor("name", "ctordoc", args, examples); ctors.add(ctordoc); return ctors; } public List getCtorsAlternate() { return new ArrayList<>() {{ add(new DocForFuncCtor("name", "ctordoc", new LinkedHashMap<>() {{ put("aname", "atype"); }}, new ArrayList<>() {{ add(new ArrayList<>() {{ add("example"); add("description"); }}); }} )); add(new DocForFuncCtor("name", "ctordoc", new LinkedHashMap<>() {{ put("aname", "atype"); }}, new ArrayList<>() {{ add(new ArrayList<>() {{ add("example"); }}); }} )); }}; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy