public enum CommitPolicy extends Enum<CommitPolicy>
| Enum Constant and Description |
|---|
AUTO
if no commits should be sent (relying on auto(soft)commit on the instance itself)
|
HARD
for default Solr commit
|
SOFT
for Solr soft commit
|
| Modifier and Type | Method and Description |
|---|---|
static CommitPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitPolicy HARD
public static final CommitPolicy SOFT
public static final CommitPolicy AUTO
public static CommitPolicy[] values()
for (CommitPolicy c : CommitPolicy.values()) System.out.println(c);
public static CommitPolicy 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 © 2012-2017 The Apache Software Foundation. All Rights Reserved.