Class PairMatchSpec

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PairMatchSpec extends MatchSpec
MatchSpec for performing matches between pairs of tables.
Since:
8 Sep 2005
Author:
Mark Taylor
See Also:
  • Constructor Details

    • PairMatchSpec

      public PairMatchSpec(uk.ac.starlink.table.join.MatchEngine engine, Supplier<uk.ac.starlink.table.RowRunner> runnerFact)
      Constructs a new PairMatchSpec.
      Parameters:
      engine - match algorithm object
      runnerFact - supplier for RowRunner
  • Method Details

    • checkArguments

      public void checkArguments()
      Description copied from class: MatchSpec
      Invoked from the event dispatch thread before MatchSpec.calculate(uk.ac.starlink.table.join.ProgressIndicator) is called. A check should be made that it is sensible to call calculate; if not an exception should be thrown.
      Specified by:
      checkArguments in class MatchSpec
    • calculate

      public void calculate(uk.ac.starlink.table.join.ProgressIndicator indicator) throws IOException, InterruptedException
      Description copied from class: MatchSpec
      Performs the match calculation. This method is called from a thread other than the event dispatch thread, so it can take its time, and must not call Swing things.
      Specified by:
      calculate in class MatchSpec
      Parameters:
      indicator - a progress indicator which the calculation should try to update
      Throws:
      IOException - if there's some trouble
      InterruptedException - if the user interrupts the calculation
    • matchSuccess

      public void matchSuccess(Component parent)
      Description copied from class: MatchSpec
      This method is called from the event dispatch thread if the calculation terminates normally.
      Specified by:
      matchSuccess in class MatchSpec
      Parameters:
      parent - window controlling the invocation
    • getDescription

      public String getDescription()