Class QuickStatementsUpdateScheduler
java.lang.Object
org.openrefine.wikidata.updates.scheduler.QuickStatementsUpdateScheduler
- All Implemented Interfaces:
UpdateScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionschedule(List<EntityEdit> updates) Performs the scheduling.protected voidsplitUpdate(EntityEdit edit) Separates out the statements which refer to new entities from the rest of the update.
-
Constructor Details
-
QuickStatementsUpdateScheduler
public QuickStatementsUpdateScheduler()
-
-
Method Details
-
splitUpdate
Separates out the statements which refer to new entities from the rest of the update. The resulting updates are stored inreferencingUpdatesandupdatesWithoutReferences.- Parameters:
update-- Throws:
ImpossibleSchedulingException- if two new entity ids are referred to in the same statement
-
schedule
Description copied from interface:UpdateSchedulerPerforms 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:
schedulein interfaceUpdateScheduler- Parameters:
updates- the updates to schedule- Returns:
- the reorganized updates
- Throws:
ImpossibleSchedulingException- when the scheduler cannot cope with a particular edit plan.
-