Class QuickStatementsUpdateScheduler
- java.lang.Object
-
- org.openrefine.wikibase.updates.scheduler.QuickStatementsUpdateScheduler
-
- All Implemented Interfaces:
UpdateScheduler
public class QuickStatementsUpdateScheduler extends Object implements UpdateScheduler
-
-
Constructor Summary
Constructors Constructor Description QuickStatementsUpdateScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EntityEdit>
schedule(List<EntityEdit> updates)
Performs the scheduling.protected void
splitUpdate(EntityEdit edit)
Separates out the statements which refer to new entities from the rest of the update.
-
-
-
Method Detail
-
splitUpdate
protected void splitUpdate(EntityEdit edit) throws ImpossibleSchedulingException
Separates out the statements which refer to new entities from the rest of the update. The resulting updates are stored inpointerUpdates
andpointerFreeUpdates
.- Parameters:
edit
- the edit to be split- Throws:
ImpossibleSchedulingException
- if two new entity ids are referred to in the same statement
-
schedule
public List<EntityEdit> schedule(List<EntityEdit> updates) throws ImpossibleSchedulingException
Description copied from interface:UpdateScheduler
Performs the scheduling. The initial updates are provided as a list so that the scheduler can attempt to respect the initial order (but no guarantee is made for that in general).- Specified by:
schedule
in interfaceUpdateScheduler
- Parameters:
updates
- the updates to schedule- Returns:
- the reorganized updates
- Throws:
ImpossibleSchedulingException
- when the scheduler cannot cope with a particular edit plan.
-
-