- All Superinterfaces:
AutoCloseable,DataSourceConnection,DataSourceReadConnection
- All Known Implementing Classes:
BufferedTableReadConnection,LimitTableReadConnection,PeekTableStreamReadConnection,XpbtReadConnection
A connection for sequentially reading the data of a table data source.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TableReadConnectionbuffered()default TableReadConnectionbuffered(int limit) static TableReadConnectionempty()default voiddefault intdefault voidforwardRows(OutputStream out, int maxLines) Writes the rows to an OutputStream in the X-Pipe binary format.Returns the data type of the table data.default OptionalIntReturns the amount of rows to be read or -1 if the amount is unknown.default TableReadConnectionlimit(int limit) default ArrayNodereadRows(int maxLines) Reads multiple rows in bulk.voidwithRows(DataStructureNodeAcceptor<TupleNode> lineAcceptor) Consumes the table rows until the acceptor returns false.Methods inherited from interface io.xpipe.core.source.DataSourceConnection
close, initMethods inherited from interface io.xpipe.core.source.DataSourceReadConnection
canRead
-
Method Details
-
empty
-
getDataType
TupleType getDataType()Returns the data type of the table data. -
getRowCount
Returns the amount of rows to be read or -1 if the amount is unknown.- Throws:
Exception
-
limit
-
buffered
- Throws:
Exception
-
buffered
- Throws:
Exception
-
withRows
Consumes the table rows until the acceptor returns false.- Throws:
Exception
-
readRows
Reads multiple rows in bulk.- Throws:
Exception
-
forwardRows
Writes the rows to an OutputStream in the X-Pipe binary format.- Throws:
Exception
-
forward
- Specified by:
forwardin interfaceDataSourceReadConnection- Throws:
Exception
-
forwardAndCount
- Throws:
Exception
-