uk.ac.starlink.table
Class JoinStarTable.FixAction

java.lang.Object
  |
  +--uk.ac.starlink.table.JoinStarTable.FixAction
Enclosing class:
JoinStarTable

public static class JoinStarTable.FixAction
extends Object

Class defining the possible actions for doctoring column names when joining tables. Joining tables can cause confusion if columns with the same names exist in some of them. An instance of this class defines how the join should behave in this case.


Field Summary
static JoinStarTable.FixAction NO_ACTION
          Column names should be left alone.
 
Method Summary
static JoinStarTable.FixAction makeRenameAllAction(String appendage)
          Returns an action indicating that all column names should be modified by appending a given string.
static JoinStarTable.FixAction makeRenameDuplicatesAction(String appendage)
          Returns an action indicating that column names which would be duplicated elsewhere in the result table should be modified by appending a given string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ACTION

public static final JoinStarTable.FixAction NO_ACTION
Column names should be left alone.

Method Detail

makeRenameDuplicatesAction

public static JoinStarTable.FixAction makeRenameDuplicatesAction(String appendage)
Returns an action indicating that column names which would be duplicated elsewhere in the result table should be modified by appending a given string.

Parameters:
appendage - string to append to duplicate columns

makeRenameAllAction

public static JoinStarTable.FixAction makeRenameAllAction(String appendage)
Returns an action indicating that all column names should be modified by appending a given string.

Parameters:
appendage - string to append to columns

toString

public String toString()
Overrides:
toString in class Object

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.