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
Deprecated.
|
MERGE_CALIBRATE_BY_DELETES |
MERGE_FACTOR |
MERGE_MAX_OPTIMIZE_SIZE |
MERGE_MAX_SIZE |
MERGE_MIN_SIZE |
RAM_BUFFER_SIZE |
TERM_INDEX_INTERVAL
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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)
@Deprecated public static final IndexWriterSetting TERM_INDEX_INTERVAL
@Deprecated public static final IndexWriterSetting MAX_THREAD_STATES
public static final IndexWriterSetting INFOSTREAM
IndexWriterConfig.setInfoStream(org.apache.lucene.util.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(org.apache.lucene.index.IndexWriterConfig writerConfig, int value)
writerConfig
- the IndexWriterConfig
value
- the value for the configurationIllegalArgumentException
- when user selects an invalid value; should be wrapped.public void applySetting(org.apache.lucene.index.LogByteSizeMergePolicy logByteSizeMergePolicy, int value)
logByteSizeMergePolicy
- the LogByteSizeMergePolicy
value
- the value for the configurationIllegalArgumentException
- 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–2016 Hibernate. All rights reserved.