uk.ac.starlink.table.formats
Class StreamStarTable.RowEvaluator
java.lang.Object
|
+--uk.ac.starlink.table.formats.StreamStarTable.RowEvaluator
- Enclosing class:
- StreamStarTable
- protected static class StreamStarTable.RowEvaluator
- extends Object
Helper class to examine unknown rows (arrays of strings) and
work out what they contain. By repeatedly calling submitRow
the evaluator can refine its idea of what kind of data is represented
by each column.
Method Summary |
protected StreamStarTable.Metadata |
getMetadata()
Returns information gleaned from previous submitRow
calls about the kind of data that appears to be in the columns. |
void |
submitRow(List row)
Looks at a given row (list of strings) and records information about
what sort of things it looks like it contains. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamStarTable.RowEvaluator
protected StreamStarTable.RowEvaluator()
submitRow
public void submitRow(List row)
throws TableFormatException
- Looks at a given row (list of strings) and records information about
what sort of things it looks like it contains.
- Parameters:
row
- ncol-element list of strings
- Throws:
TableFormatException
- if the number of elements in
row is not the same as on the first call
getMetadata
protected StreamStarTable.Metadata getMetadata()
- Returns information gleaned from previous submitRow
calls about the kind of data that appears to be in the columns.
- Returns:
- metadata