Package org.apache.solr.crossdc.common
Enum CrossDcConf.CollapseUpdates
- java.lang.Object
-
- java.lang.Enum<CrossDcConf.CollapseUpdates>
-
- org.apache.solr.crossdc.common.CrossDcConf.CollapseUpdates
-
- All Implemented Interfaces:
Serializable
,Comparable<CrossDcConf.CollapseUpdates>
- Enclosing class:
- CrossDcConf
public static enum CrossDcConf.CollapseUpdates extends Enum<CrossDcConf.CollapseUpdates>
Option to collapse multiple update requests in the Consumer application before sending to the target Solr.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CrossDcConf.CollapseUpdates
getOrDefault(String strValue, CrossDcConf.CollapseUpdates defaultValue)
static CrossDcConf.CollapseUpdates
valueOf(String name)
Returns the enum constant of this type with the specified name.static CrossDcConf.CollapseUpdates[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final CrossDcConf.CollapseUpdates NONE
Don't collapse any update requests, send them directly as-is.
-
PARTIAL
public static final CrossDcConf.CollapseUpdates PARTIAL
Collapse only update requests that don't contain any delete operations.
-
ALL
public static final CrossDcConf.CollapseUpdates ALL
Always collapse update requests, as long as they have the same parameters.
-
-
Method Detail
-
values
public static CrossDcConf.CollapseUpdates[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CrossDcConf.CollapseUpdates c : CrossDcConf.CollapseUpdates.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrossDcConf.CollapseUpdates valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOrDefault
public static CrossDcConf.CollapseUpdates getOrDefault(String strValue, CrossDcConf.CollapseUpdates defaultValue)
-
-