|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.contrib.index.mapred.IndexUpdateConfiguration
public class IndexUpdateConfiguration
This class provides the getters and the setters to a number of parameters. Most of the parameters are related to the index update and the rest are from the existing Map/Reduce parameters.
Constructor Summary | |
---|---|
IndexUpdateConfiguration(Configuration conf)
Constructor |
Method Summary | |
---|---|
Configuration |
getConfiguration()
Get the underlying configuration object. |
Class<? extends IDistributionPolicy> |
getDistributionPolicyClass()
Get the distribution policy class. |
Class<? extends org.apache.lucene.analysis.Analyzer> |
getDocumentAnalyzerClass()
Get the analyzer class. |
Class<? extends InputFormat> |
getIndexInputFormatClass()
Get the index input format class. |
int |
getIndexMaxFieldLength()
Get the max field length for a Lucene instance. |
int |
getIndexMaxNumSegments()
Get the max number of segments for a Lucene instance. |
String |
getIndexShards()
Get the string representation of a number of shards. |
Class<? extends IIndexUpdater> |
getIndexUpdaterClass()
Get the index updater class. |
boolean |
getIndexUseCompoundFile()
Check whether to use the compound file format for a Lucene instance. |
int |
getIOSortMB()
Get the IO sort space in MB. |
Class<? extends ILocalAnalysis> |
getLocalAnalysisClass()
Get the local analysis class. |
String |
getMapredTempDir()
Get the Map/Reduce temp directory. |
void |
setDistributionPolicyClass(Class<? extends IDistributionPolicy> theClass)
Set the distribution policy class. |
void |
setDocumentAnalyzerClass(Class<? extends org.apache.lucene.analysis.Analyzer> theClass)
Set the analyzer class. |
void |
setIndexInputFormatClass(Class<? extends InputFormat> theClass)
Set the index input format class. |
void |
setIndexMaxFieldLength(int maxFieldLength)
Set the max field length for a Lucene instance. |
void |
setIndexMaxNumSegments(int maxNumSegments)
Set the max number of segments for a Lucene instance. |
void |
setIndexShards(String shards)
Set the string representation of a number of shards. |
void |
setIndexUpdaterClass(Class<? extends IIndexUpdater> theClass)
Set the index updater class. |
void |
setIndexUseCompoundFile(boolean useCompoundFile)
Set whether use the compound file format for a Lucene instance. |
void |
setIOSortMB(int mb)
Set the IO sort space in MB. |
void |
setLocalAnalysisClass(Class<? extends ILocalAnalysis> theClass)
Set the local analysis class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexUpdateConfiguration(Configuration conf)
conf
- Method Detail |
---|
public Configuration getConfiguration()
public int getIOSortMB()
public void setIOSortMB(int mb)
mb
- the IO sort space in MBpublic String getMapredTempDir()
public Class<? extends IDistributionPolicy> getDistributionPolicyClass()
public void setDistributionPolicyClass(Class<? extends IDistributionPolicy> theClass)
theClass
- the distribution policy classpublic Class<? extends org.apache.lucene.analysis.Analyzer> getDocumentAnalyzerClass()
public void setDocumentAnalyzerClass(Class<? extends org.apache.lucene.analysis.Analyzer> theClass)
theClass
- the analyzer classpublic Class<? extends InputFormat> getIndexInputFormatClass()
public void setIndexInputFormatClass(Class<? extends InputFormat> theClass)
theClass
- the index input format classpublic Class<? extends IIndexUpdater> getIndexUpdaterClass()
public void setIndexUpdaterClass(Class<? extends IIndexUpdater> theClass)
theClass
- the index updater classpublic Class<? extends ILocalAnalysis> getLocalAnalysisClass()
public void setLocalAnalysisClass(Class<? extends ILocalAnalysis> theClass)
theClass
- the local analysis classpublic String getIndexShards()
public void setIndexShards(String shards)
shards
- the string representation of a number of shardspublic int getIndexMaxFieldLength()
public void setIndexMaxFieldLength(int maxFieldLength)
maxFieldLength
- the max field length for a Lucene instancepublic int getIndexMaxNumSegments()
public void setIndexMaxNumSegments(int maxNumSegments)
maxNumSegments
- the max number of segments for a Lucene instancepublic boolean getIndexUseCompoundFile()
public void setIndexUseCompoundFile(boolean useCompoundFile)
useCompoundFile
- whether to use the compound file format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |