Provides a tool for collecting statistics about the values of fields in the data set. More...
Public Member Functions | |
Statistics () | |
Constructs the object without initialization. | |
void | initialize (int size) |
Initializes the object with total number of distinct values in the data set. | |
void | add (Record record) |
Add and parse the record, and update the statistics. | |
void | add (MultiFieldKey key, int quantity) |
Add explicitly a value with given quantity. | |
void | print (OutputStream out) |
Prints statistics to given output stream. | |
void | print () |
Prints statistics to standard output stream. | |
void | print (String filename) |
Print statistics to a given file. |
Provides a tool for collecting statistics about the values of fields in the data set.
void common.Statistics.add | ( | Record | record | ) | [inline] |
Add and parse the record, and update the statistics.
record | record to add. |
void common.Statistics.add | ( | MultiFieldKey | key, |
int | quantity | ||
) | [inline] |
Add explicitly a value with given quantity.
key | |
quantity |
void common.Statistics.initialize | ( | int | size | ) | [inline] |
Initializes the object with total number of distinct values in the data set.
size | number of distinct values in the data set. |
void common.Statistics.print | ( | OutputStream | out | ) | [inline] |
Prints statistics to given output stream.
out | output stream. |
void common.Statistics.print | ( | String | filename | ) | [inline] |
Print statistics to a given file.
filename | output filename. |