Class UpdateSequence
java.lang.Object
org.openrefine.wikidata.updates.scheduler.UpdateSequence
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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>
-
Constructor Details
-
UpdateSequence
public UpdateSequence()
-
-
Method Details
-
add
Adds a new update to the list, merging it with any existing one with the same subject.- Parameters:
update-
-
getUpdates
- Returns:
- the list of merged updates
-
getSubjects
- Returns:
- the set of touched subjects
-