public class CsvStarTable extends StreamStarTable
Here are the rules:
END| Constructor and Description |
|---|
CsvStarTable(DataSource datsrc)
Constructor with default options.
|
CsvStarTable(DataSource datsrc,
java.nio.charset.Charset encoding,
java.lang.Boolean fixHasHeaderLine,
int maxSample,
char delimiter,
RowEvaluator.Decoder<?>[] decoders)
Constructor with configuration option.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.io.BufferedReader |
getReader()
Convenience method which returns a buffered reader 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 java.util.List<java.lang.String> |
readRow(java.io.BufferedReader in)
Reads the next row of data from a given stream.
|
getColumnCount, getColumnInfo, getRowCount, getRowSequence, initcheckedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSplittable, getURL, isRandom, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic CsvStarTable(DataSource datsrc) throws TableFormatException, java.io.IOException
datsrc - data sourceTableFormatExceptionjava.io.IOExceptionpublic CsvStarTable(DataSource datsrc, java.nio.charset.Charset encoding, java.lang.Boolean fixHasHeaderLine, int maxSample, char delimiter, RowEvaluator.Decoder<?>[] decoders) throws TableFormatException, java.io.IOException
datsrc - data sourceencoding - character encodingfixHasHeaderLine - 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 sampleddecoders - permitted data type decodersdelimiter - field delimiter characterTableFormatExceptionjava.io.IOExceptionprotected java.io.BufferedReader getReader()
throws java.io.IOException
StreamStarTablegetReader in class StreamStarTablejava.io.IOExceptionprotected RowEvaluator.Metadata obtainMetadata() throws TableFormatException, java.io.IOException
StreamStarTableobtainMetadata in class StreamStarTableTableFormatException - if the data doesn't represent this
kind of tablejava.io.IOException - if I/O error is encounteredprotected java.util.List<java.lang.String> readRow(java.io.BufferedReader in)
throws java.io.IOException
readRow in class StreamStarTablein - input streamnull for end of streamTableFormatException - if the data doesn't represent this
kind of tablejava.io.IOException - if I/O error is encountered