- All Known Implementing Classes:
DataTableAccumulatorImpl
public interface DataTableAccumulator
An accumulator for table data.
This class can be used to construct new table data sources by
accumulating the rows using add(DataStructureNode) or acceptor() and then calling
finish(DataSourceId) to complete the construction process and create a new data source.
-
Method Summary
Modifier and TypeMethodDescriptionio.xpipe.core.data.node.DataStructureNodeAcceptor<io.xpipe.core.data.node.DataStructureNode>acceptor()Creates a tuple acceptor that adds all accepted tuples to the table.voidadd(io.xpipe.core.data.node.DataStructureNode row) Adds a row to the table.static DataTableAccumulatorcreate(io.xpipe.core.data.type.TupleType type) finish(io.xpipe.core.source.DataSourceId id) Finishes the construction process and returns the data source reference.default DataTableWrapper forfinish(DataSourceId).intReturns the current amount of rows added to the table.
-
Method Details
-
create
-
finish
Wrapper forfinish(DataSourceId). -
finish
Finishes the construction process and returns the data source reference.- Parameters:
id- the data source id to assign
-
add
void add(io.xpipe.core.data.node.DataStructureNode row) Adds a row to the table.- Parameters:
row- the row to add
-
acceptor
io.xpipe.core.data.node.DataStructureNodeAcceptor<io.xpipe.core.data.node.DataStructureNode> acceptor()Creates a tuple acceptor that adds all accepted tuples to the table. -
getCurrentRows
int getCurrentRows()Returns the current amount of rows added to the table.
-