|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IndexWriterConfig.OpenMode>
org.apache.lucene.index.IndexWriterConfig.OpenMode
public static enum IndexWriterConfig.OpenMode
Specifies the open mode for IndexWriter
.
Enum Constant Summary | |
---|---|
APPEND
Opens an existing index. |
|
CREATE
Creates a new index or overwrites an existing one. |
|
CREATE_OR_APPEND
Creates a new index if one does not exist, otherwise it opens the index and documents will be appended. |
Method Summary | |
---|---|
static IndexWriterConfig.OpenMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IndexWriterConfig.OpenMode[] |
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 IndexWriterConfig.OpenMode CREATE
public static final IndexWriterConfig.OpenMode APPEND
public static final IndexWriterConfig.OpenMode CREATE_OR_APPEND
Method Detail |
---|
public static IndexWriterConfig.OpenMode[] values()
for (IndexWriterConfig.OpenMode c : IndexWriterConfig.OpenMode.values()) System.out.println(c);
public static IndexWriterConfig.OpenMode 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |