Module io.xpipe.api

Class DataTableAccumulatorImpl

java.lang.Object
io.xpipe.api.impl.DataTableAccumulatorImpl
All Implemented Interfaces:
DataTableAccumulator

public class DataTableAccumulatorImpl extends Object implements DataTableAccumulator
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataTableAccumulatorImpl(io.xpipe.core.data.type.TupleType type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.xpipe.core.data.node.DataStructureNodeAcceptor<io.xpipe.core.data.node.DataStructureNode>
    Creates a tuple acceptor that adds all accepted tuples to the table.
    void
    add(io.xpipe.core.data.node.DataStructureNode row)
    Adds a row to the table.
    finish(io.xpipe.core.source.DataSourceId id)
    Finishes the construction process and returns the data source reference.
    int
    Returns 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, wait

    Methods inherited from interface io.xpipe.api.DataTableAccumulator

    finish
  • Constructor Details

    • DataTableAccumulatorImpl

      public DataTableAccumulatorImpl(io.xpipe.core.data.type.TupleType type)
  • Method Details

    • finish

      public DataTable finish(io.xpipe.core.source.DataSourceId id)
      Description copied from interface: DataTableAccumulator
      Finishes the construction process and returns the data source reference.
      Specified by:
      finish in interface DataTableAccumulator
      Parameters:
      id - the data source id to assign
    • add

      public void add(io.xpipe.core.data.node.DataStructureNode row)
      Description copied from interface: DataTableAccumulator
      Adds a row to the table.
      Specified by:
      add in interface DataTableAccumulator
      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: DataTableAccumulator
      Creates a tuple acceptor that adds all accepted tuples to the table.
      Specified by:
      acceptor in interface DataTableAccumulator
    • getCurrentRows

      public int getCurrentRows()
      Description copied from interface: DataTableAccumulator
      Returns the current amount of rows added to the table.
      Specified by:
      getCurrentRows in interface DataTableAccumulator