Enum IncrementalStoreOperand
- java.lang.Object
-
- java.lang.Enum<IncrementalStoreOperand>
-
- org.apache.jackrabbit.oak.index.indexer.document.incrementalstore.IncrementalStoreOperand
-
- All Implemented Interfaces:
Serializable,Comparable<IncrementalStoreOperand>
public enum IncrementalStoreOperand extends Enum<IncrementalStoreOperand>
The operation to perform. Operations are generated by either running a 'diff' , or by 'top up' which is downloading the changes from MongoDB. When using the 'diff' command, we expect that the node doesn't exist yet for the 'add' case, and that the node exists for the 'delete' and 'modify' case (due to the nature of the 'diff'). The operations are then ADD, DELETE, MODIFY. When using the 'top up', we don't know whether the node existed before or not; we only get the updated state. That's why we use different operations: REMOVE_IF_EXISTS and INSERT_OR_UPDATE.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDDELETEINSERT_OR_UPDATEMODIFYREMOVE_IF_EXISTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static IncrementalStoreOperandvalueOf(String name)Returns the enum constant of this type with the specified name.static IncrementalStoreOperand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final IncrementalStoreOperand ADD
-
DELETE
public static final IncrementalStoreOperand DELETE
-
MODIFY
public static final IncrementalStoreOperand MODIFY
-
REMOVE_IF_EXISTS
public static final IncrementalStoreOperand REMOVE_IF_EXISTS
-
INSERT_OR_UPDATE
public static final IncrementalStoreOperand INSERT_OR_UPDATE
-
-
Method Detail
-
values
public static IncrementalStoreOperand[] 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 (IncrementalStoreOperand c : IncrementalStoreOperand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IncrementalStoreOperand 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<IncrementalStoreOperand>
-
-