public interface RowPipe extends TableSink
This serves almost the same purpose as a
RowStore
, but has a subtly different contract.
Instead of RowStore's RowStore.getStarTable()
method, which must be called after the endRows
method,
it provides a waitForStarTable()
method which may be called
before any or all rows have been written, but on a different thread.
This blocks until the metadata has been supplied.
Modifier and Type | Method and Description |
---|---|
void |
setError(IOException e)
May be called by the writing stream to set an I/O error on the pipe.
|
StarTable |
waitForStarTable()
Returns a table whose data is supplied by that written into this sink.
|
acceptMetadata, acceptRow, endRows
StarTable waitForStarTable() throws IOException
TableSink.acceptMetadata(uk.ac.starlink.table.StarTable)
has been called.IOException
void setError(IOException e)
e
as its cause from one of the read methods.
If an error has already been set by a previous call of this method,
this has no effect (only the first error is set).e
- exception to pass to readersCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.