public class PostgresAsciiStarTable extends StreamStarTable
END
Constructor and Description |
---|
PostgresAsciiStarTable(DataSource datsrc,
URL schemaUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected RowEvaluator.Metadata |
obtainMetadata()
Obtains metadata for the table by reading the schema provided at
construction time.
|
protected List<String> |
readRow(PushbackInputStream in)
Reads the next row of data from a given stream.
|
protected RowEvaluator.Metadata |
readSchema(InputStream in)
Given a PostgreSQL/2MASS-type schema file, works out what the
column metadata will look like for each column of the table.
|
getColumnCount, getColumnInfo, getInputStream, getRowCount, getRowSequence, init
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSplittable, getURL, isRandom, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
public PostgresAsciiStarTable(DataSource datsrc, URL schemaUrl) throws IOException
datsrc
- input data sourceschemaUrl
- URL for 'schema' document which describes data
types (like twomass_psc_schema)IOException
protected List<String> readRow(PushbackInputStream in) throws TableFormatException, IOException
StreamStarTable
readRow
in class StreamStarTable
in
- input streamnull
for end of streamTableFormatException
- if the data doesn't represent this
kind of tableIOException
- if I/O error is encounteredprotected RowEvaluator.Metadata obtainMetadata() throws IOException
obtainMetadata
in class StreamStarTable
TableFormatException
- if the data doesn't represent this
kind of tableIOException
- if I/O error is encounteredprotected RowEvaluator.Metadata readSchema(InputStream in) throws IOException
in
- input stream for schema fileIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.