common
Class ClientRequest

java.lang.Object
  extended by common.ClientRequest

public class ClientRequest
extends java.lang.Object

Computes the user's request as a set of encrypted coefficients corresponding to the queried indicator polynomial.

The current implementation supports computing the query only for a specified value over given fields. General boolean expressions are not supported, thus should be done manually.

Usage:

java %common.ClientRequest <mapred> <key> <paramfile> <requestfile>

mapred
epic
Make request for MapRedEpic.
plain
Make request for MapRedPlainCountOne.
notsendcoeff
Make request for MapRedNotSendCoeff.
key
Value to be counted.
paramfile
Path to the parameters file (see Parameters).
requestfile
Path to the request to be created.

Author:
vohuudtr

Constructor Summary
ClientRequest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void requestEpic(MultiFieldKey key, java.io.DataOutput out)
          Makes request for MapRedEpic.
static void requestNotSendCoeff(MultiFieldKey key, java.io.DataOutput out)
          Makes request for MapRedNotSendCoeff.
static void requestPlain(MultiFieldKey key, java.io.DataOutput out)
          Makes request for MapRedPlainCountOne.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRequest

public ClientRequest()
Method Detail

requestEpic

public static void requestEpic(MultiFieldKey key,
                               java.io.DataOutput out)
Makes request for MapRedEpic.

Parameters:
key - value to be counted.
out - output stream containing the created request.

requestPlain

public static void requestPlain(MultiFieldKey key,
                                java.io.DataOutput out)
Makes request for MapRedPlainCountOne.

Parameters:
key - value to be counted.
out - output stream containing the created request.

requestNotSendCoeff

public static void requestNotSendCoeff(MultiFieldKey key,
                                       java.io.DataOutput out)
Makes request for MapRedNotSendCoeff. This is actually a fake method as we do not send any coefficients when using MapRedNotSendCoeff. Processing of the query in this case is actually done by LocalCount, which handles the request and answer locally. So the arguments provided to this method can be null.

Parameters:
key - value to be counted, can be null.
out - output stream containing the created request. The output stream can be null.

main

public static void main(java.lang.String[] args)
Parameters:
args -