public enum IndexWriterSetting extends Enum<IndexWriterSetting> implements Serializable
org.apache.lucene.index.IndexWriter
.Enum Constant and Description |
---|
INFOSTREAM |
MAX_BUFFERED_DELETE_TERMS |
MAX_BUFFERED_DOCS |
MAX_MERGE_DOCS |
MAX_THREAD_STATES |
MERGE_CALIBRATE_BY_DELETES |
MERGE_FACTOR |
MERGE_MAX_OPTIMIZE_SIZE |
MERGE_MAX_SIZE |
MERGE_MIN_SIZE |
RAM_BUFFER_SIZE |
TERM_INDEX_INTERVAL |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final IndexWriterSetting MAX_BUFFERED_DELETE_TERMS
public static final IndexWriterSetting MAX_BUFFERED_DOCS
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
public static final IndexWriterSetting MERGE_MAX_SIZE
public static final IndexWriterSetting MERGE_MAX_OPTIMIZE_SIZE
public static final IndexWriterSetting MERGE_CALIBRATE_BY_DELETES
public static final IndexWriterSetting RAM_BUFFER_SIZE
public static final IndexWriterSetting TERM_INDEX_INTERVAL
public static final IndexWriterSetting MAX_THREAD_STATES
public static final IndexWriterSetting INFOSTREAM
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 nameNullPointerException
- 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 fileSearchException
- for unrecognized valuesCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved