common
Class GetAnswer

java.lang.Object
  extended by common.GetAnswer

public class GetAnswer
extends java.lang.Object

Provides a tool to obtain the plain-text count value from the answer received from the cloud. The answer is simply decrypted using the known degree of b.

Usage:

java %common.GetAnswer <mapred> <paramfile> <answerfile>

mapred
epic
Gets answer received from MapRedEpic.
plain
Gets answer received from MapRedPlainCountOne.
paramfile
Path to the parameters file (see Parameters).
answerfile
Path to the answer file.

Author:
vohuudtr

Constructor Summary
GetAnswer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void parseAnswerEpic(java.lang.String answer)
          Decrypts the encrypted answer to the plain-text count value.
static void parseAnswerPlain(java.lang.String answer)
          In plain-text MapReduce cases, the received answer is also the count value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetAnswer

public GetAnswer()
Method Detail

parseAnswerEpic

public static void parseAnswerEpic(java.lang.String answer)
Decrypts the encrypted answer to the plain-text count value. The plain-text value is printed to the standard output.

Parameters:
answer - encrypted answer as a big-integer in Java String format.

parseAnswerPlain

public static void parseAnswerPlain(java.lang.String answer)
In plain-text MapReduce cases, the received answer is also the count value. The answer is, therefore, printed directly to the standard output.

Parameters:
answer - plain-text answer as a big-integer in Java String format.

main

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