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 class
RandomDataHistogram.Bucket
The type Bucket.static class
RandomDataHistogram.Counts
The type Counts.
-
Field Summary
Fields Modifier and Type Field Description static String
COUNT
The constant COUNT.static char
HISTO_DOT
The constant HISTO_DOT.static String
LABEL
The constant LABEL.static int
MAX_ITEMS_TO_PRINT
The constant MAX_ITEMS_TO_PRINT.static int
MAX_LABEL_LENGTH
The constant MAX_LABEL_LENGTH.static int
MAX_TYPES_TO_COLLECT
The constant MAX_TYPES_TO_COLLECT.static int
MAX_WIDTH
The constant MAX_WIDTH.static char
VERTICAL_BAR
The 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.String
print(List<Tracker> entries, boolean countsComparator, String label)
Generate random data historgram report.String
print(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
-
-