Skip navigation links

Package org.knime.core.data.container

Implementation of a DataContainer.

See: Description

Package org.knime.core.data.container Description

Implementation of a DataContainer.

A DataContainer is a buffer that you can use to fill a data table. Use this class when you create much (and also just little) data and you don't want to bother about a data structure that keeps the calculated data. A DataContainer will take care of it, it will memorize the rows that you've added and also buffer it to the disk when the data gets large so that memory gets a bottleneck. Typically, you write code like this:

  DataContainer container = new DataContainer();
  container.open(aDataTableSpec);
  for (...) {
    DataRow newRow = calculateRow();
    container.add(newRow)
  }
  container.close();
  DataTable result = container.getTable();
        

This package contains also implementations for easy storage of datatables whose columns have changed. For further details on how to use them, refer to the description of NodeModel and its execute method.

Skip navigation links

Copyright, 2003 - 2016. All rights reserved.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.