Enum IncrementalStoreOperand
java.lang.Object
java.lang.Enum<IncrementalStoreOperand>
org.apache.jackrabbit.oak.index.indexer.document.incrementalstore.IncrementalStoreOperand
- All Implemented Interfaces:
Serializable
,Comparable<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 -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static IncrementalStoreOperand
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 Details
-
ADD
-
DELETE
-
MODIFY
-
REMOVE_IF_EXISTS
-
INSERT_OR_UPDATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- Overrides:
toString
in classEnum<IncrementalStoreOperand>
-