ivory.lsh.projection
Class ComputeSignaturesRandom

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by edu.umd.cloud9.util.PowerTool
          extended by ivory.lsh.projection.ComputeSignaturesRandom
All Implemented Interfaces:
Configurable, Tool

public class ComputeSignaturesRandom
extends PowerTool

A Hadoop task to compute signatures from document vectors. usage: [index-path] [num-of-bits] [type-of-computation] ([batch-size])

Author:
ferhanture

Nested Class Summary
static class ComputeSignaturesRandom.MyMapper
          Convert int doc vectors into NBitSignature objects using LSH.
 
Field Summary
static String[] RequiredParameters
           
 
Constructor Summary
ComputeSignaturesRandom(Configuration conf)
           
 
Method Summary
 String[] getRequiredParameters()
           
 int runTool()
           
 
Methods inherited from class edu.umd.cloud9.util.PowerTool
run, run
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Field Detail

RequiredParameters

public static final String[] RequiredParameters
Constructor Detail

ComputeSignaturesRandom

public ComputeSignaturesRandom(Configuration conf)
Method Detail

getRequiredParameters

public String[] getRequiredParameters()
Specified by:
getRequiredParameters in class PowerTool

runTool

public int runTool()
            throws Exception
Specified by:
runTool in class PowerTool
Throws:
Exception