Class AttrHistorical

    • Constructor Detail

      • AttrHistorical

        public AttrHistorical()
    • Method Detail

      • replayOperation

        public abstract Modification replayOperation​(CSN csn,
                                                     Entry modifiedEntry,
                                                     Modification mod)
        This method will be called when replaying an operation. It should use whatever historical information is stored in this class to solve the conflict and return the modification that will actually have to be replayed.
        Parameters:
        csn - The CSN associated to the operation.
        modifiedEntry - The entry modified by this operation.
        mod - The modification.
        Returns:
        The modification which should be replayed, or null if the modification should not be replayed.
      • processLocalOrNonConflictModification

        public abstract void processLocalOrNonConflictModification​(CSN csn,
                                                                   Modification mod)
        This method calculates the historical information and update the hist attribute to store the historical information for modify operation that does not conflict with previous operation. This is the usual path and should therefore be optimized.

        It does not check if the operation to process is conflicting or not with previous operations. The caller is responsible for this.

        Parameters:
        csn - The CSN of the operation to process
        mod - The modify operation to process.
      • getValuesHistorical

        public abstract Set<AttrValueHistorical> getValuesHistorical()
        Get the historical informations for this attribute Info.
        Returns:
        the historical informations
      • containsAddedValue

        public abstract boolean containsAddedValue​(ByteString normalizedValue,
                                                   ByteString value)
        Returns true if this historical information contains add or replace meta-data for the provided attribute value.
        Parameters:
        normalizedValue - The normalized attribute value.
        value - The attribute value.
        Returns:
        true if this historical information contains add or replace meta-data for the provided attribute value.
      • getDeleteTime

        public abstract CSN getDeleteTime()
        Returns the last time when this attribute was deleted.
        Returns:
        the last time when this attribute was deleted