Implementation of a local data generator. More...
Static Public Member Functions | |
static Record | generateRecord () |
Generate a random record. | |
static Statistics | getStats () |
Returns the statistics of generated records. | |
static void | main (String[] args) |
Usage: | |
Static Public Attributes | |
static OutputStream | paramos = null |
static OutputStream | statos = null |
Static Package Functions | |
static void | generate (long quantity) throws IOException |
static void | generate (long quantity, boolean split) throws IOException |
static void | generate (long quantity, OutputStream os) throws IOException |
Implementation of a local data generator.
This class is used for experiments.
A record is formatted in order of columns as follows:
Notes:
static Record common.Producer.generateRecord | ( | ) | [inline, static] |
Generate a random record.
While generating records, statistics about the values are also recorded for evaluation.
static Statistics common.Producer.getStats | ( | ) | [inline, static] |
Returns the statistics of generated records.
static void common.Producer.main | ( | String[] | args | ) | [inline, static] |
Usage:
java common.Producer <quantity> <paramfile> <statfile> [datafile]
datafile
is not specified, the standard output is used. All the paths can be either absolute or relative paths.
args |