|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.unigram.likelike.lsh.LSHRecommendations
public class LSHRecommendations
Extract recommendations for input examples.
Field Summary | |
---|---|
protected LikelikeLogger |
logger
logger. |
Constructor Summary | |
---|---|
LSHRecommendations()
|
Method Summary | |
---|---|
protected boolean |
getRecommendations(java.lang.String inputDir,
java.lang.String outputFile,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs)
Get items to be recommended. |
static void |
main(java.lang.String[] args)
Main method. |
int |
run(java.lang.String[] args)
Run from ToolRunner. |
int |
run(java.lang.String[] args,
org.apache.hadoop.conf.Configuration conf)
Run. |
protected void |
setResultConf(org.apache.hadoop.mapreduce.Counters counters,
org.apache.hadoop.conf.Configuration conf)
Add the configuration information from the result of extract candidates to conf. |
protected void |
showParameters()
Show parameters for FreqentNGramExtraction. |
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 |
Field Detail |
---|
protected final LikelikeLogger logger
Constructor Detail |
---|
public LSHRecommendations()
Method Detail |
---|
public final int run(java.lang.String[] args) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException, java.lang.Exception
run
in interface org.apache.hadoop.util.Tool
args
- contains arguments
java.io.IOException
- -
java.lang.InterruptedException
- -
java.lang.ClassNotFoundException
- -
java.lang.Exception
- -public int run(java.lang.String[] args, org.apache.hadoop.conf.Configuration conf) throws java.lang.Exception
args
- argumentsconf
- configuration
java.lang.Exception
- -protected void setResultConf(org.apache.hadoop.mapreduce.Counters counters, org.apache.hadoop.conf.Configuration conf)
counters
- contains counterconf
- configurationprotected boolean getRecommendations(java.lang.String inputDir, java.lang.String outputFile, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException
inputDir
- inputoutputFile
- outputconf
- configurationfs
- file system
java.io.IOException
- -
java.lang.InterruptedException
- -
java.lang.ClassNotFoundException
- -protected void showParameters()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- argument strings which contain input and output files
java.lang.Exception
- -
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |