java.lang.Object
io.xpipe.api.impl.DataTableAccumulatorImpl
- All Implemented Interfaces:
DataTableAccumulator
-
Constructor Summary
Constructors -
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.finish(io.xpipe.core.source.DataStoreId id) Finishes the construction process and returns the data source reference.intReturns the current amount of rows added to the table.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.xpipe.api.DataTableAccumulator
finish
-
Constructor Details
-
DataTableAccumulatorImpl
public DataTableAccumulatorImpl(io.xpipe.core.data.type.TupleType type)
-
-
Method Details
-
finish
Description copied from interface:DataTableAccumulatorFinishes the construction process and returns the data source reference.- Specified by:
finishin interfaceDataTableAccumulator- Parameters:
id- the data source id to assign
-
add
public void add(io.xpipe.core.data.node.DataStructureNode row) Description copied from interface:DataTableAccumulatorAdds a row to the table.- Specified by:
addin interfaceDataTableAccumulator- Parameters:
row- the row to add
-
acceptor
public io.xpipe.core.data.node.DataStructureNodeAcceptor<io.xpipe.core.data.node.DataStructureNode> acceptor()Description copied from interface:DataTableAccumulatorCreates a tuple acceptor that adds all accepted tuples to the table.- Specified by:
acceptorin interfaceDataTableAccumulator
-
getCurrentRows
public int getCurrentRows()Description copied from interface:DataTableAccumulatorReturns the current amount of rows added to the table.- Specified by:
getCurrentRowsin interfaceDataTableAccumulator
-