Serializable
, Comparable<IndexWriterConfig.OpenMode>
public static enum IndexWriterConfig.OpenMode extends Enum<IndexWriterConfig.OpenMode>
IndexWriter
:
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.
APPEND
- opens an existing index.
Enum Constant | Description |
---|---|
APPEND |
|
CREATE |
|
CREATE_OR_APPEND |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final IndexWriterConfig.OpenMode CREATE
public static final IndexWriterConfig.OpenMode APPEND
public static final IndexWriterConfig.OpenMode CREATE_OR_APPEND
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 nameNullPointerException
- if the argument is nullCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.