Package org.apache.solr.bench.generators
Class RandomDataHistogram.Counts
- java.lang.Object
-
- org.apache.solr.bench.generators.RandomDataHistogram.Counts
-
- Enclosing class:
- RandomDataHistogram
public static class RandomDataHistogram.Counts extends Object
The type Counts.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELIPSE
The constant ELIPSE.static String
ITEMS_ONLY_PRINTING
The constant ITEMS_ONLY_PRINTING.static String
THERE_ARE_OVER
The constant THERE_ARE_OVER.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomDataHistogram.Counts
collect(Object... values)
Collect counts.String
print()
Print a string representation of the random data histogram.String
print(boolean sortByLabel, int bucketed)
Print string.String
print(int bucketed)
Print a string representation of the random data histogram.
-
-
-
Field Detail
-
ITEMS_ONLY_PRINTING
public static final String ITEMS_ONLY_PRINTING
The constant ITEMS_ONLY_PRINTING.- See Also:
- Constant Field Values
-
THERE_ARE_OVER
public static final String THERE_ARE_OVER
The constant THERE_ARE_OVER.- See Also:
- Constant Field Values
-
ELIPSE
public static final String ELIPSE
The constant ELIPSE.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Counts
public Counts(String label, boolean bucketed)
Instantiates a new Counts.- Parameters:
label
- the labelbucketed
- the bucketed
-
-
Method Detail
-
collect
public RandomDataHistogram.Counts collect(Object... values)
Collect counts.- Parameters:
values
- the values- Returns:
- the counts
-
print
public String print()
Print a string representation of the random data histogram. @return the string
-
print
public String print(int bucketed)
Print a string representation of the random data histogram.- Parameters:
bucketed
- -1 for no bucketing or the number of buckets- Returns:
- the string
-
print
public String print(boolean sortByLabel, int bucketed)
Print string.- Parameters:
sortByLabel
- the sort by labelbucketed
- the bucketed- Returns:
- the string
-
-