|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcommon.Statistics
public class Statistics
Provides a tool for collecting statistics about the values of fields in the data set.
Constructor Summary | |
---|---|
Statistics()
Constructs the object without initialization. |
Method Summary | |
---|---|
void |
add(MultiFieldKey key,
int quantity)
Add explicitly a value with given quantity. |
void |
add(Record record)
Add and parse the record, and update the statistics. |
void |
initialize(int size)
Initializes the object with total number of distinct values in the data set. |
void |
print()
Prints statistics to standard output stream. |
void |
print(java.io.OutputStream out)
Prints statistics to given output stream. |
void |
print(java.lang.String filename)
Print statistics to a given file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public void initialize(int size)
size
- number of distinct values in the data set.public void add(Record record)
record
- record to add.public void add(MultiFieldKey key, int quantity)
key
- quantity
- public void print(java.io.OutputStream out)
out
- output stream.public void print()
public void print(java.lang.String filename)
filename
- output filename.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |