Enum 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.
    • 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 name
        NullPointerException - if the argument is null