Class UpdateSequence

java.lang.Object
org.openrefine.wikidata.updates.scheduler.UpdateSequence

public class UpdateSequence extends Object
Helper class to store a list of updates where each subject appears at most once. It preserves order of insertion.
Author:
Antonin Delpeuch
  • Constructor Details

    • UpdateSequence

      public UpdateSequence()
  • Method Details

    • add

      public void add(EntityEdit update)
      Adds a new update to the list, merging it with any existing one with the same subject.
      Parameters:
      update -
    • getUpdates

      public List<EntityEdit> getUpdates()
      Returns:
      the list of merged updates
    • getSubjects

      public Set<org.wikidata.wdtk.datamodel.interfaces.EntityIdValue> getSubjects()
      Returns:
      the set of touched subjects