Class Operation.SetValue

    • Constructor Detail

      • SetValue

        public SetValue​(Term.Raw value)
    • Method Detail

      • prepare

        public Operation prepare​(TableMetadata metadata,
                                 ColumnMetadata receiver,
                                 boolean canReadExistingState)
                          throws InvalidRequestException
        Description copied from interface: Operation.RawUpdate
        This method validates the operation (i.e. validate it is well typed) based on the specification of the receiver of the operation. It returns an Operation which can be though as post-preparation well-typed Operation.
        Specified by:
        prepare in interface Operation.RawUpdate
        receiver - the column this operation applies to.
        canReadExistingState - whether the update depends on existing state
        Returns:
        the prepared update operation.
        Throws:
        InvalidRequestException
      • isCompatibleWith

        public boolean isCompatibleWith​(Operation.RawUpdate other)
        Specified by:
        isCompatibleWith in interface Operation.RawUpdate
        Returns:
        whether this operation can be applied alongside the other update (in the same UPDATE statement for the same column).