edu.arsc.multisearch
Class Multisearch

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by edu.arsc.multisearch.Multisearch
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class Multisearch
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool


Constructor Summary
Multisearch(java.io.File file)
          Create a Multisearch object with a file full of queries.
Multisearch(java.lang.String query)
          Create a Multisearch object with only one query.
 
Method Summary
static void cleanInput(java.io.File folder)
          delete all
 void cleanUp()
          Given multiple outputs during a batch run, this function combines all results into a single file in basepath called final-results
 java.lang.String[] getArgs()
           
static java.lang.String getInput()
           
static java.lang.String getLabel()
          Return the label associated with this Multisearch object.
static java.lang.String getMergeClass()
          Return the merge class associated with this Multisearch object
 java.lang.String getOutputFile()
           
static java.lang.String getQuery()
          Return the query associated with this Multisearch object.
static int getQueryNumber()
          Return the queryNumber associated with this Multisearch object.
static void main(java.lang.String[] args)
          Runs a Multisearch and prints the results.
 int run(java.lang.String[] args)
          Run function
static void setInput(java.lang.String in)
           
static void setLimit(int lim)
           
 void setMergeClass(java.lang.String classSet)
           
static void setOutputType(java.lang.String ot)
           
 void setPrint(java.io.PrintWriter web)
          remove this kylie
 void setRestriction(java.lang.String classSet)
           
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

Multisearch

public Multisearch(java.lang.String query)
Create a Multisearch object with only one query.

Parameters:
String - query

Multisearch

public Multisearch(java.io.File file)
Create a Multisearch object with a file full of queries.

Parameters:
File - file
Method Detail

main

public static void main(java.lang.String[] args)
Runs a Multisearch and prints the results.


run

public int run(java.lang.String[] args)
Run function

Specified by:
run in interface org.apache.hadoop.util.Tool

setPrint

public void setPrint(java.io.PrintWriter web)
remove this kylie


getQuery

public static java.lang.String getQuery()
Return the query associated with this Multisearch object.

Returns:
String

getArgs

public java.lang.String[] getArgs()
Returns:
String[]

getLabel

public static java.lang.String getLabel()
Return the label associated with this Multisearch object.

Returns:
String

getQueryNumber

public static int getQueryNumber()
Return the queryNumber associated with this Multisearch object.

Returns:
int

getMergeClass

public static java.lang.String getMergeClass()
Return the merge class associated with this Multisearch object

Returns:
String

setMergeClass

public void setMergeClass(java.lang.String classSet)
Parameters:
String -

setRestriction

public void setRestriction(java.lang.String classSet)
Parameters:
String -

cleanUp

public void cleanUp()
Given multiple outputs during a batch run, this function combines all results into a single file in basepath called final-results


cleanInput

public static void cleanInput(java.io.File folder)
delete all


getOutputFile

public java.lang.String getOutputFile()
Returns:
String outputLocation

getInput

public static java.lang.String getInput()
Returns:
String inputFiles

setOutputType

public static void setOutputType(java.lang.String ot)

setInput

public static void setInput(java.lang.String in)

setLimit

public static void setLimit(int lim)
Parameters:
int -