|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IndexWriterSetting> org.hibernate.search.backend.configuration.IndexWriterSetting
public enum IndexWriterSetting
Represents possible options to be applied to an
org.apache.lucene.index.IndexWriter
.
Enum Constant Summary | |
---|---|
MAX_BUFFERED_DELETE_TERMS
|
|
MAX_BUFFERED_DOCS
|
|
MAX_FIELD_LENGTH
Deprecated. |
|
MAX_MERGE_DOCS
|
|
MERGE_FACTOR
|
|
RAM_BUFFER_SIZE
|
|
TERM_INDEX_INTERVAL
|
|
USE_COMPOUND_FILE
|
Method Summary | |
---|---|
void |
applySetting(IndexWriterConfig writerConfig,
int value)
|
void |
applySetting(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_FIELD_LENGTH
LimitTokenCountAnalyzer
public static final IndexWriterSetting MAX_MERGE_DOCS
LogMergePolicy.setMaxMergeDocs(int)
public static final IndexWriterSetting MERGE_FACTOR
LogMergePolicy.setMergeFactor(int)
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 nullpublic void applySetting(IndexWriterConfig writerConfig, int value)
IllegalArgumentException
- when user selects an invalid value; should be wrapped.public void applySetting(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 |