Class Annotators

java.lang.Object
io.nosqlbench.engine.core.annotation.Annotators

public class Annotators extends Object
Singleton-scoped annotator interface for the local process. This uses SPI to find the annotators and some config scaffolding to make configuring them easier. Any number of annotators is allowed of any supporting interface. Each instance of a config is used to initialize a single annotator, and annotations are distributed to each of them in turn.
  • Constructor Details

    • Annotators

      public Annotators()
  • Method Details

    • init

      public static void init(String annotatorsConfig, String annotateLabelSpec)
      Initialize the active annotators. This method must be called before any others.
      Parameters:
      annotatorsConfig - A (possibly empty) set of annotator configurations, in any form supported by ConfigLoader
    • recordAnnotation

      public static void recordAnnotation(Annotation annotation)