Package org.apache.solr.bench.generators
Class RandomDataHistogram
java.lang.Object
org.apache.solr.bench.generators.RandomDataHistogram
The type Random data histogram.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe type Bucket.static classThe type Counts. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe constant COUNT.static final charThe constant HISTO_DOT.static final StringThe constant LABEL.static final intThe constant MAX_ITEMS_TO_PRINT.static final intThe constant MAX_LABEL_LENGTH.static final intThe constant MAX_TYPES_TO_COLLECT.static final intThe constant MAX_WIDTH.static final charThe constant VERTICAL_BAR. -
Constructor Summary
ConstructorsConstructorDescriptionRandomDataHistogram(int bucketCnt) Instantiates a new Random data histogram. -
Method Summary
Modifier and TypeMethodDescriptionprotected static List<RandomDataHistogram.Bucket> Bucket list.Generate random data historgram report.Generate random data historgram report.
-
Field Details
-
MAX_TYPES_TO_COLLECT
public static final int MAX_TYPES_TO_COLLECTThe constant MAX_TYPES_TO_COLLECT.- See Also:
-
MAX_ITEMS_TO_PRINT
public static final int MAX_ITEMS_TO_PRINTThe constant MAX_ITEMS_TO_PRINT.- See Also:
-
MAX_LABEL_LENGTH
public static final int MAX_LABEL_LENGTHThe constant MAX_LABEL_LENGTH.- See Also:
-
VERTICAL_BAR
public static final char VERTICAL_BARThe constant VERTICAL_BAR.- See Also:
-
COUNT
The constant COUNT.- See Also:
-
MAX_WIDTH
public static final int MAX_WIDTHThe constant MAX_WIDTH.- See Also:
-
LABEL
The constant LABEL.- See Also:
-
HISTO_DOT
public static final char HISTO_DOTThe constant HISTO_DOT.- See Also:
-
-
Constructor Details
-
RandomDataHistogram
public RandomDataHistogram(int bucketCnt) Instantiates a new Random data histogram.- Parameters:
bucketCnt- the bucket cnt
-
-
Method Details
-
print
Generate random data historgram report.- Parameters:
entries- the list of Trackers maintaining the countslabel- the label for counted objects- Returns:
- the string
-
print
Generate random data historgram report.- Parameters:
entries- the entriescountsComparator- the counts comparatorlabel- the label- Returns:
- the string
-
bucket
Bucket list.- Parameters:
bucketCnt- the bucket cntentries- the list of Trackers maintaining the counts- Returns:
- the list
-