Class AbstractRelNodeGetRelTypeNameBenchmark.ClassNameState

  • Enclosing class:
    AbstractRelNodeGetRelTypeNameBenchmark

    public static class AbstractRelNodeGetRelTypeNameBenchmark.ClassNameState
    extends java.lang.Object
    A state holding the full class names of all built-in implementors of the RelNode interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] fullNames  
      private java.util.Random r  
      private long seed  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassNameState()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String nextName()
      Returns a pseudo-random class name that corresponds to an implementor of the RelNode interface.
      void setupRandom()
      Sets up the random number generator at the beginning of each iteration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fullNames

        private final java.lang.String[] fullNames
      • seed

        private long seed
      • r

        private java.util.Random r
    • Constructor Detail

      • ClassNameState

        public ClassNameState()
    • Method Detail

      • setupRandom

        public void setupRandom()
        Sets up the random number generator at the beginning of each iteration.

        To have relatively comparable results the generator should always use the same seed for the whole duration of the benchmark.

      • nextName

        public java.lang.String nextName()
        Returns a pseudo-random class name that corresponds to an implementor of the RelNode interface.