org.knime.core.node.workflow
Enum SingleNodeContainer.MemoryPolicy

java.lang.Object
  extended by java.lang.Enum<SingleNodeContainer.MemoryPolicy>
      extended by org.knime.core.node.workflow.SingleNodeContainer.MemoryPolicy
All Implemented Interfaces:
Serializable, Comparable<SingleNodeContainer.MemoryPolicy>
Enclosing class:
SingleNodeContainer

public static enum SingleNodeContainer.MemoryPolicy
extends Enum<SingleNodeContainer.MemoryPolicy>

Available policy how to handle output data. It might be held in memory or completely on disc. We use an enum here as a boolean may not be sufficient in the future (possibly adding a third option "try to keep in memory").


Enum Constant Summary
CacheInMemory
          Hold output in memory.
CacheOnDisc
          Buffer on disc.
CacheSmallInMemory
          Cache only small tables in memory, i.e.
 
Method Summary
static SingleNodeContainer.MemoryPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SingleNodeContainer.MemoryPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CacheInMemory

public static final SingleNodeContainer.MemoryPolicy CacheInMemory
Hold output in memory.


CacheSmallInMemory

public static final SingleNodeContainer.MemoryPolicy CacheSmallInMemory
Cache only small tables in memory, i.e. with cell count <= DataContainer.MAX_CELLS_IN_MEMORY.


CacheOnDisc

public static final SingleNodeContainer.MemoryPolicy CacheOnDisc
Buffer on disc.

Method Detail

values

public static SingleNodeContainer.MemoryPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SingleNodeContainer.MemoryPolicy c : SingleNodeContainer.MemoryPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SingleNodeContainer.MemoryPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.