public class CsvStarTable extends StreamStarTable
Here are the rules:
END
Constructor and Description |
---|
CsvStarTable(DataSource datsrc)
Constructor with default options.
|
CsvStarTable(DataSource datsrc,
Boolean fixHasHeaderLine,
int maxSample)
Constructor with configuration option.
|
Modifier and Type | Method and Description |
---|---|
protected PushbackInputStream |
getInputStream()
Convenience method which returns a buffered pushback stream based
on this table's data source.
|
protected RowEvaluator.Metadata |
obtainMetadata()
Obtains column metadata for this table, probably by reading through
the rows once and using a RowEvaluator.
|
protected List<String> |
readRow(PushbackInputStream in)
Reads the next row of data from a given stream.
|
getColumnCount, getColumnInfo, 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 CsvStarTable(DataSource datsrc) throws TableFormatException, IOException
datsrc
- data sourceTableFormatException
IOException
public CsvStarTable(DataSource datsrc, Boolean fixHasHeaderLine, int maxSample) throws TableFormatException, IOException
datsrc
- data sourcefixHasHeaderLine
- indicates whether initial line is known
to be column names: yes, no or auto-determinemaxSample
- maximum number of rows sampled to determine
column data types; if <=0, all rows are sampledTableFormatException
IOException
protected PushbackInputStream getInputStream() throws IOException
StreamStarTable
getInputStream
in class StreamStarTable
IOException
protected RowEvaluator.Metadata obtainMetadata() throws TableFormatException, IOException
StreamStarTable
obtainMetadata
in class StreamStarTable
TableFormatException
- if the data doesn't represent this
kind of tableIOException
- if I/O error is encounteredprotected List<String> readRow(PushbackInputStream in) throws IOException
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 encounteredCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.