|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.ttools.KeepColumnFilter
Table filter for selecting a number of columns and discarding the rest.
Constructor Summary | |
KeepColumnFilter()
|
Method Summary | |
ProcessingStep |
createStep(Iterator argIt)
Creates a new ProcessingStep based on a sequence of command-line arguments. |
String |
getFilterUsage()
Returns a usage string for this filter. |
String |
getName()
Returns the name of this filter. |
static StarTable |
keepColumnTable(StarTable table,
String[] colIds)
Returns a table which selects a number of columns from its base table by column ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeepColumnFilter()
Method Detail |
public String getName()
ProcessingFilter
getName
in interface ProcessingFilter
public String getFilterUsage()
ProcessingFilter
ProcessingFilter.createStep(java.util.Iterator)
.
getFilterUsage
in interface ProcessingFilter
public ProcessingStep createStep(Iterator argIt)
ProcessingFilter
createStep
in interface ProcessingFilter
argIt
- iterator over command-line arguments positioned
just after the -getName() flagpublic static StarTable keepColumnTable(StarTable table, String[] colIds) throws IOException
table
- base tablecolIds
- array of column IDs, one for each row in the output
table
IOException
|
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 |