EPiC
Efficient Privacy-Preserving Counting for MapReduce
 All Classes Namespaces Functions Variables
Static Public Member Functions | Static Public Attributes | Static Package Functions
common.Producer Class Reference

Implementation of a local data generator. More...

List of all members.

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

Detailed Description

Implementation of a local data generator.

This class is used for experiments.

A record is formatted in order of columns as follows:

Notes:

See also:
main(String[]) for detailed usage.
Author:
vohuudtr

Member Function Documentation

static Record common.Producer.generateRecord ( ) [inline, static]

Generate a random record.

While generating records, statistics about the values are also recorded for evaluation.

Returns:
the generated record.
static Statistics common.Producer.getStats ( ) [inline, static]

Returns the statistics of generated records.

Returns:
statistics of generated records.
static void common.Producer.main ( String[]  args) [inline, static]

Usage:

java common.Producer <quantity> <paramfile> <statfile> [datafile]

quantity
Number of records to generate.
paramfile
Path to the parameters file (see Parameters).
statfile
Path to the output statistics file.
datafile
Path to the output data file. The output is automatically split into multiple files (suffixed with numbers) of size not greater than 1GB. If datafile is not specified, the standard output is used.

All the paths can be either absolute or relative paths.

Parameters:
args

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables