|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.JoinFixAction
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.
JoinStarTable
Field Summary | |
static JoinFixAction |
NO_ACTION
Column names should be left alone. |
Method Summary | |
String |
getFixedName(String origName,
boolean isDup)
Returns the, possibly modified, name of a column. |
static JoinFixAction |
makeRenameAllAction(String appendage)
Returns an action indicating that all column names should be modified by appending a given string. |
static JoinFixAction |
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 |
public static final JoinFixAction NO_ACTION
Method Detail |
public static JoinFixAction makeRenameDuplicatesAction(String appendage)
appendage
- string to append to duplicate columnspublic static JoinFixAction makeRenameAllAction(String appendage)
appendage
- string to append to columnspublic String getFixedName(String origName, boolean isDup)
origName
- unmodified column nameisDup
- whether the column name would be duplicated
in the set of unmodified namespublic String toString()
toString
in class Object
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |