java.lang.Object
io.xpipe.core.impl.StreamReadConnection
io.xpipe.core.impl.PeekTableStreamReadConnection
- All Implemented Interfaces:
DataSourceConnection,DataSourceReadConnection,TableReadConnection,AutoCloseable
public abstract class PeekTableStreamReadConnection
extends StreamReadConnection
implements TableReadConnection
-
Field Summary
Fields inherited from class io.xpipe.core.impl.StreamReadConnection
inputStream, reader, store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected TupleTypeReturns the data type of the table data.voidinit()Initializes this connection.final voidwithRows(DataStructureNodeAcceptor<TupleNode> lineAcceptor) Consumes the table rows until the acceptor returns false.protected abstract voidwithRowsInternal(DataStructureNodeAcceptor<TupleNode> lineAcceptor) Methods inherited from class io.xpipe.core.impl.StreamReadConnection
canReadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.xpipe.core.source.DataSourceReadConnection
canReadMethods inherited from interface io.xpipe.core.source.TableReadConnection
buffered, buffered, forward, forwardAndCount, forwardRows, getRowCount, limit, readRows
-
Constructor Details
-
PeekTableStreamReadConnection
-
-
Method Details
-
init
Description copied from interface:DataSourceConnectionInitializes this connection. Required to be called exactly once prior to attempting to use this connection.- Specified by:
initin interfaceDataSourceConnection- Overrides:
initin classStreamReadConnection- Throws:
Exception
-
convertType
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDataSourceConnection- Overrides:
closein classStreamReadConnection- Throws:
Exception
-
getDataType
Description copied from interface:TableReadConnectionReturns the data type of the table data.- Specified by:
getDataTypein interfaceTableReadConnection
-
withRows
Description copied from interface:TableReadConnectionConsumes the table rows until the acceptor returns false.- Specified by:
withRowsin interfaceTableReadConnection- Throws:
Exception
-
withRowsInternal
protected abstract void withRowsInternal(DataStructureNodeAcceptor<TupleNode> lineAcceptor) throws Exception - Throws:
Exception
-