uk.ac.starlink.ttools.task
Class SeqConcatStarTable

java.lang.Object
  extended by uk.ac.starlink.table.WrapperStarTable
      extended by uk.ac.starlink.ttools.task.SeqConcatStarTable
All Implemented Interfaces:
uk.ac.starlink.table.StarTable

public class SeqConcatStarTable
extends uk.ac.starlink.table.WrapperStarTable

StarTable implementation which concatenates a list of compatible constituent tables in sequence. Unlike ConcatStarTable it does not attempt to provide random access or to cache tables that it's obtained before. This is particularly suitable for catting an enormous number of tables together.

Since:
4 Oct 2006
Author:
Mark Taylor

Field Summary
 
Fields inherited from class uk.ac.starlink.table.WrapperStarTable
baseTable
 
Constructor Summary
SeqConcatStarTable(uk.ac.starlink.table.StarTable meta, TableProducer[] tProds)
          Constructor.
 
Method Summary
 Object getCell(long irow, int icol)
           
 Object[] getRow(long irow)
           
 long getRowCount()
           
 uk.ac.starlink.table.RowSequence getRowSequence()
           
 boolean isRandom()
           
 
Methods inherited from class uk.ac.starlink.table.WrapperStarTable
checkedLongToInt, getBaseTable, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getURL, setName, setParameter, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeqConcatStarTable

public SeqConcatStarTable(uk.ac.starlink.table.StarTable meta,
                          TableProducer[] tProds)
Constructor.

Parameters:
meta - table providing metadata
tProds - array of table producers which provide the tables to join
Method Detail

isRandom

public boolean isRandom()
Specified by:
isRandom in interface uk.ac.starlink.table.StarTable
Overrides:
isRandom in class uk.ac.starlink.table.WrapperStarTable

getCell

public Object getCell(long irow,
                      int icol)
Specified by:
getCell in interface uk.ac.starlink.table.StarTable
Overrides:
getCell in class uk.ac.starlink.table.WrapperStarTable

getRow

public Object[] getRow(long irow)
Specified by:
getRow in interface uk.ac.starlink.table.StarTable
Overrides:
getRow in class uk.ac.starlink.table.WrapperStarTable

getRowCount

public long getRowCount()
Specified by:
getRowCount in interface uk.ac.starlink.table.StarTable
Overrides:
getRowCount in class uk.ac.starlink.table.WrapperStarTable

getRowSequence

public uk.ac.starlink.table.RowSequence getRowSequence()
                                                throws IOException
Specified by:
getRowSequence in interface uk.ac.starlink.table.StarTable
Overrides:
getRowSequence in class uk.ac.starlink.table.WrapperStarTable
Throws:
IOException


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