Class QuickStatementsUpdateScheduler

java.lang.Object
org.openrefine.wikidata.updates.scheduler.QuickStatementsUpdateScheduler
All Implemented Interfaces:
UpdateScheduler

public class QuickStatementsUpdateScheduler extends Object implements UpdateScheduler
  • Constructor Details

    • QuickStatementsUpdateScheduler

      public QuickStatementsUpdateScheduler()
  • Method Details

    • 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 in referencingUpdates and updatesWithoutReferences.
      Parameters:
      update -
      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 interface UpdateScheduler
      Parameters:
      updates - the updates to schedule
      Returns:
      the reorganized updates
      Throws:
      ImpossibleSchedulingException - when the scheduler cannot cope with a particular edit plan.