Class CGWorkloadExporter

java.lang.Object
io.nosqlbench.cqlgen.core.CGWorkloadExporter
All Implemented Interfaces:
BundledApp, ToIntFunction<String[]>

public class CGWorkloadExporter extends Object implements BundledApp
The unit of generation is simply everything that is provided to the exporter together. Thus if you feed it one create statement at a time, it will yield a workload with just that, and if you feed it an elaborate schema, it will generate a workload inclusive of all provided elements.
See Also:
  • Field Details

  • Constructor Details

    • CGWorkloadExporter

      public CGWorkloadExporter()
  • Method Details

    • main

      public static void main(String[] args)
    • applyAsInt

      public int applyAsInt(String[] args)
      Specified by:
      applyAsInt in interface BundledApp
      Specified by:
      applyAsInt in interface ToIntFunction<String[]>
    • generateBlocks

      public Map<String,Object> generateBlocks()
    • configureTimeouts

      public void configureTimeouts(Object spec)
    • setNamingTemplate

      public void setNamingTemplate(String namingTemplate)
    • getWorkloadAsYaml

      public String getWorkloadAsYaml()
    • getModelAsJson

      public String getModelAsJson()
    • getWorkoadAsJson

      public String getWorkoadAsJson()