Package org.apache.solr.bench.generators
Class SolrGen<T>
java.lang.Object
org.apache.solr.bench.generators.SolrGen<T>
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
org.quicktheories.api.AsString<T>,org.quicktheories.core.Gen<T>
- Direct Known Subclasses:
LazyGen,NamedListGen
The type Solr gen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.quicktheories.core.Gen<T> The Child.static final charThe constant CLOSE_PAREN.static final StringThe constant COUNT_TYPES_ARE_TRACKED_LIMIT_WAS_REACHED.static final Map<String, RandomDataHistogram.Counts> The constant COUNTS.protected longThe End.static final StringThe constant ONLY.static final StringThe constant OPEN_PAREN.static final StringThe constant RANDOM_DATA_GEN_REPORTS.protected longThe Start. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCounts report list.describedAs(String description) Described as solr gen.describedAs(org.quicktheories.api.AsString<T> asString) <R> org.quicktheories.core.Gen<R> Flat maps generated values with supplied functionGenerate t.generate(org.quicktheories.core.RandomnessSource in) protected DistributionGets distribution.<R> org.quicktheories.core.Gen<R> <R> SolrGen<R> Map solr gen.org.quicktheories.core.Gen<T> Mix solr gen.Mix solr gen.toString()Class<?> type()Type class.withDistribution(Distribution distribution) With distribution solr gen.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.quicktheories.core.Gen
asString, assuming, map, map, mix, mutate, toOptionals, zip, zip, zip, zip
-
Field Details
-
OPEN_PAREN
The constant OPEN_PAREN.- See Also:
-
CLOSE_PAREN
public static final char CLOSE_PARENThe constant CLOSE_PAREN.- See Also:
-
COUNT_TYPES_ARE_TRACKED_LIMIT_WAS_REACHED
The constant COUNT_TYPES_ARE_TRACKED_LIMIT_WAS_REACHED.- See Also:
-
RANDOM_DATA_GEN_REPORTS
The constant RANDOM_DATA_GEN_REPORTS.- See Also:
-
ONLY
The constant ONLY.- See Also:
-
child
The Child. -
start
protected long startThe Start. -
end
protected long endThe End. -
COUNTS
The constant COUNTS.
-
-
Constructor Details
-
SolrGen
protected SolrGen()Instantiates a new Solr gen. -
SolrGen
Instantiates a new Solr gen.- Parameters:
child- the childtype- the type
-
SolrGen
Instantiates a new Solr gen.- Parameters:
child- the child
-
-
Method Details
-
countsReport
Counts report list.- Returns:
- the list
-
generate
- Specified by:
generatein interfaceorg.quicktheories.core.Gen<T>
-
generate
Generate t.- Parameters:
in- the in- Returns:
- the t
-
type
Type class.- Returns:
- the class
-
describedAs
Described as solr gen.- Parameters:
description- the description- Returns:
- the solr gen
-
describedAs
- Specified by:
describedAsin interfaceorg.quicktheories.core.Gen<T>
-
mix
Mix solr gen.- Parameters:
rhs- the rhstype- the type- Returns:
- the solr gen
-
mix
- Specified by:
mixin interfaceorg.quicktheories.core.Gen<T>
-
mix
Mix solr gen.- Parameters:
rhs- the rhsweight- the weighttype- the type- Returns:
- the solr gen
-
flatMap
public <R> org.quicktheories.core.Gen<R> flatMap(Function<? super T, org.quicktheories.core.Gen<? extends R>> mapper) Flat maps generated values with supplied function- Specified by:
flatMapin interfaceorg.quicktheories.core.Gen<T>- Type Parameters:
R- Type to map to- Parameters:
mapper- function to map with- Returns:
- A Gen of R
-
map
- Specified by:
mapin interfaceorg.quicktheories.core.Gen<T>
-
map
Map solr gen.- Type Parameters:
R- the type parameter- Parameters:
mapper- the mappertype- the type- Returns:
- the solr gen
-
withDistribution
With distribution solr gen.- Parameters:
distribution- the distribution- Returns:
- the solr gen
-
toString
-
getDistribution
Gets distribution.- Returns:
- the distribution
-