public class IndexUpdateConfiguration extends Object
构造器和说明 |
---|
IndexUpdateConfiguration(Configuration conf)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
Configuration |
getConfiguration()
Get the underlying configuration object.
|
Class<? extends IDistributionPolicy> |
getDistributionPolicyClass()
Get the distribution policy class.
|
Class<? extends 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 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.
|
public IndexUpdateConfiguration(Configuration conf)
conf
- 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 Analyzer> getDocumentAnalyzerClass()
public void setDocumentAnalyzerClass(Class<? extends 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 formatCopyright © 2009 The Apache Software Foundation