uk.ac.starlink.ttools.join
Class SkyMatch2Mapping

java.lang.Object
  extended by uk.ac.starlink.ttools.join.Match2Mapping
      extended by uk.ac.starlink.ttools.join.SkyMatch2Mapping
All Implemented Interfaces:
TableMapping

public class SkyMatch2Mapping
extends Match2Mapping

Match2Mapping subclass specific to sky matching. In particular this can attempt to guess RA/DEC columns in the input tables using UCDs etc.

Since:
6 Nov 2007
Author:
Mark Taylor

Constructor Summary
SkyMatch2Mapping(uk.ac.starlink.table.join.SkyMatchEngine matcher, String raExpr1, String decExpr1, String raExpr2, String decExpr2, uk.ac.starlink.table.join.JoinType join, boolean bestOnly, uk.ac.starlink.table.JoinFixAction fixact1, uk.ac.starlink.table.JoinFixAction fixact2, uk.ac.starlink.table.join.ProgressIndicator progger)
          Constructor.
 
Method Summary
protected  uk.ac.starlink.table.StarTable makeSubTable(uk.ac.starlink.table.StarTable inTable, String[] exprTuple)
          Creates a table containing the values which are required by the matcher.
 
Methods inherited from class uk.ac.starlink.ttools.join.Match2Mapping
mapTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyMatch2Mapping

public SkyMatch2Mapping(uk.ac.starlink.table.join.SkyMatchEngine matcher,
                        String raExpr1,
                        String decExpr1,
                        String raExpr2,
                        String decExpr2,
                        uk.ac.starlink.table.join.JoinType join,
                        boolean bestOnly,
                        uk.ac.starlink.table.JoinFixAction fixact1,
                        uk.ac.starlink.table.JoinFixAction fixact2,
                        uk.ac.starlink.table.join.ProgressIndicator progger)
Constructor.

Parameters:
matcher - sky match engine
raExpr1 - JEL expression for right ascension/degrees in table 1 - if null, a guess is made
decExpr1 - JEL expression for declination/degrees in table 1 - if null, a guess is made
raExpr2 - JEL expression for right ascension/degrees in table 2 - if null, a guess is made
decExpr2 - JEL expression for declination/degrees in table 2 - if null, a guess is made
join - output row selection type
bestOnly - whether only the best match is to be retained
fixact1 - deduplication fix action for first input table
fixact2 - deduplication fix action for second input table
progger - progress indicator for match process
Method Detail

makeSubTable

protected uk.ac.starlink.table.StarTable makeSubTable(uk.ac.starlink.table.StarTable inTable,
                                                      String[] exprTuple)
                                               throws uk.ac.starlink.task.ExecutionException
Description copied from class: Match2Mapping
Creates a table containing the values which are required by the matcher. This typically consists of a few of the columns from the input table, but in general may come from any JEL expression based on them. Because JEL compilation is performed here, an exception (rethrown as an ExecutionException) may occur.

Overrides:
makeSubTable in class Match2Mapping
Parameters:
inTable - input table
exprTuple - array of JEL expressions giving the values of the tuple elements required for the matcher
Returns:
table containing only a column for each tuple element required for the matcher
Throws:
uk.ac.starlink.task.ExecutionException - if a compilation error occurs


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.