Class LongsDSL

java.lang.Object
org.apache.solr.bench.generators.LongsDSL

public class LongsDSL extends Object
A Class for creating Long Sources that will produce Longs within a set interval and will shrink within this domain.
  • Constructor Details

    • LongsDSL

      public LongsDSL()
  • Method Details

    • from

      public LongsDSL.LongDomainBuilder from(long startInclusive)
      Constructs a LongDomainBuilder object with an inclusive lower bound
      Parameters:
      startInclusive - - lower bound of domain
      Returns:
      a LongDomainBuilder
    • all

      public SolrGen<Long> all()
      Generates all possible Longs in Java bounded below by Long.MIN_VALUE and above by Long.MAX_VALUE.
      Returns:
      a Source of type Long
    • between

      public SolrGen<Long> between(long startInclusive, long endInclusive)
      Generates Longs within the interval specified with an inclusive lower and upper bound.

      The Source is weighted, so it is likely to generate the upper and lower limits of the domain one or more times.

      Parameters:
      startInclusive - - inclusive lower bound of domain
      endInclusive - - inclusive upper bound of domain
      Returns:
      a Source of type Long