Package org.apache.solr.bench.generators
Class RandomDataHistogram
- java.lang.Object
 - 
- org.apache.solr.bench.generators.RandomDataHistogram
 
 
- 
public class RandomDataHistogram extends Object
The type Random data histogram. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRandomDataHistogram.BucketThe type Bucket.static classRandomDataHistogram.CountsThe type Counts. 
- 
Field Summary
Fields Modifier and Type Field Description static StringCOUNTThe constant COUNT.static charHISTO_DOTThe constant HISTO_DOT.static StringLABELThe constant LABEL.static intMAX_ITEMS_TO_PRINTThe constant MAX_ITEMS_TO_PRINT.static intMAX_LABEL_LENGTHThe constant MAX_LABEL_LENGTH.static intMAX_TYPES_TO_COLLECTThe constant MAX_TYPES_TO_COLLECT.static intMAX_WIDTHThe constant MAX_WIDTH.static charVERTICAL_BARThe constant VERTICAL_BAR. 
- 
Constructor Summary
Constructors Constructor Description RandomDataHistogram(int bucketCnt)Instantiates a new Random data histogram. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static List<RandomDataHistogram.Bucket>bucket(int bucketCnt, List<Tracker> entries)Bucket list.Stringprint(List<Tracker> entries, boolean countsComparator, String label)Generate random data historgram report.Stringprint(List<Tracker> entries, String label)Generate random data historgram report. 
 - 
 
- 
- 
Field Detail
- 
MAX_TYPES_TO_COLLECT
public static final int MAX_TYPES_TO_COLLECT
The constant MAX_TYPES_TO_COLLECT.- See Also:
 - Constant Field Values
 
 
- 
MAX_ITEMS_TO_PRINT
public static final int MAX_ITEMS_TO_PRINT
The constant MAX_ITEMS_TO_PRINT.- See Also:
 - Constant Field Values
 
 
- 
MAX_LABEL_LENGTH
public static final int MAX_LABEL_LENGTH
The constant MAX_LABEL_LENGTH.- See Also:
 - Constant Field Values
 
 
- 
VERTICAL_BAR
public static final char VERTICAL_BAR
The constant VERTICAL_BAR.- See Also:
 - Constant Field Values
 
 
- 
COUNT
public static final String COUNT
The constant COUNT.- See Also:
 - Constant Field Values
 
 
- 
MAX_WIDTH
public static final int MAX_WIDTH
The constant MAX_WIDTH.- See Also:
 - Constant Field Values
 
 
- 
LABEL
public static final String LABEL
The constant LABEL.- See Also:
 - Constant Field Values
 
 
- 
HISTO_DOT
public static final char HISTO_DOT
The constant HISTO_DOT.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
print
public String print(List<Tracker> entries, String label)
Generate random data historgram report.- Parameters:
 entries- the list of Trackers maintaining the countslabel- the label for counted objects- Returns:
 - the string
 
 
- 
print
public String print(List<Tracker> entries, boolean countsComparator, String label)
Generate random data historgram report.- Parameters:
 entries- the entriescountsComparator- the counts comparatorlabel- the label- Returns:
 - the string
 
 
- 
bucket
protected static List<RandomDataHistogram.Bucket> bucket(int bucketCnt, List<Tracker> entries)
Bucket list.- Parameters:
 bucketCnt- the bucket cntentries- the list of Trackers maintaining the counts- Returns:
 - the list
 
 
 - 
 
 -