Class IntraMatchSpec

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IntraMatchSpec extends MatchSpec
MatchSpec for matching between rows of a given table.
Since:
20 Mar 2004
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • IntraMatchSpec

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

    • getTupleSelectors

      public TupleSelector[] getTupleSelectors()
      Description copied from class: MatchSpec
      Returns the components used to supply input value expressions.
      Specified by:
      getTupleSelectors in class MatchSpec
      Returns:
      array of tuple selectors
    • 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
    • getOutputSettings

      public uk.ac.starlink.ttools.task.Setting[] getOutputSettings(uk.ac.starlink.task.Task task)
      Description copied from class: MatchSpec
      Returns stilts command settings specific to this MatchSpec that control match output table generation.
      Specified by:
      getOutputSettings in class MatchSpec
      Parameters:
      task - stilts match task
      Returns:
      output settings array
    • addActionListener

      public void addActionListener(ActionListener l)
      Description copied from class: MatchSpec
      Adds a listener to be notified if the settings of this object change in a way that might change the details of the match being specified.
      Overrides:
      addActionListener in class MatchSpec
      Parameters:
      l - listener to add
    • removeActionListener

      public void removeActionListener(ActionListener l)
      Description copied from class: MatchSpec
      Removes a previously added listener.
      Overrides:
      removeActionListener in class MatchSpec
      Parameters:
      l - listener to remove