Class UpdateSequence
- java.lang.Object
-
- org.openrefine.wikibase.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 Summary
Constructors Constructor Description UpdateSequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(EntityEdit update)
Adds a new update to the list, merging it with any existing one with the same subject.Set<org.wikidata.wdtk.datamodel.interfaces.EntityIdValue>
getSubjects()
List<EntityEdit>
getUpdates()
-
-
-
Method Detail
-
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
-
-