|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IndexWriterSetting>
org.hibernate.search.backend.configuration.impl.IndexWriterSetting
public enum IndexWriterSetting
Represents possible options to be applied to an
org.apache.lucene.index.IndexWriter.
| Method Summary | |
|---|---|
void |
applySetting(org.apache.lucene.index.IndexWriterConfig writerConfig,
int value)
|
void |
applySetting(org.apache.lucene.index.LogByteSizeMergePolicy logByteSizeMergePolicy,
int value)
|
String |
getKey()
|
Integer |
parseVal(String value)
Specific parameters may override to provide additional keywords support. |
static IndexWriterSetting |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IndexWriterSetting[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IndexWriterSetting MAX_BUFFERED_DELETE_TERMS
IndexWriterConfig.setMaxBufferedDeleteTerms(int)public static final IndexWriterSetting MAX_BUFFERED_DOCS
IndexWriterConfig.setMaxBufferedDocs(int)public static final IndexWriterSetting MAX_MERGE_DOCS
LogMergePolicy.setMaxMergeDocs(int)public static final IndexWriterSetting MERGE_FACTOR
LogMergePolicy.setMergeFactor(int)public static final IndexWriterSetting MERGE_MIN_SIZE
LogByteSizeMergePolicy.setMinMergeMB(double)public static final IndexWriterSetting MERGE_MAX_SIZE
LogByteSizeMergePolicy.setMaxMergeMB(double)public static final IndexWriterSetting MERGE_MAX_OPTIMIZE_SIZE
LogByteSizeMergePolicy.setMaxMergeMBForForcedMerge(double)public static final IndexWriterSetting MERGE_CALIBRATE_BY_DELETES
LogMergePolicy.setCalibrateSizeByDeletes(boolean)public static final IndexWriterSetting RAM_BUFFER_SIZE
IndexWriterConfig.setRAMBufferSizeMB(double)public static final IndexWriterSetting TERM_INDEX_INTERVAL
IndexWriterConfig.setTermIndexInterval(int)public static final IndexWriterSetting USE_COMPOUND_FILE
LogMergePolicy.setUseCompoundFile(boolean)| Method Detail |
|---|
public static IndexWriterSetting[] values()
for (IndexWriterSetting c : IndexWriterSetting.values()) System.out.println(c);
public static IndexWriterSetting valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public void applySetting(org.apache.lucene.index.IndexWriterConfig writerConfig,
int value)
IllegalArgumentException - when user selects an invalid value; should be wrapped.
public void applySetting(org.apache.lucene.index.LogByteSizeMergePolicy logByteSizeMergePolicy,
int value)
IllegalArgumentException - when user selects an invalid value; should be wrapped.public String getKey()
public Integer parseVal(String value)
value - the string value as in configuration file
SearchException - for unrecognized values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||