45
JOptionPane.INFORMATION_MESSAGE);
}
}
Engine Node The engine node implementation displays a variety of functionality:
• Return the metadata for the specified columns.
• Store the column names before executing the proc for each
chunk, and delete these names after execution is complete.
• Print an information message and copy the selected columns
for each chunk.
• After execution, store the input metadata in a cache that can
be accessed later for viewing.
The code for this in the file
ThirdCopyEngineNode.java is:
import com.insightful.miner.*;
import com.insightful.cnkjava.*;
import java.util.Vector;
/**
* Extended implementation of engine node copying each
* input to the corresponding output. Assumes a single
* input and output. Stores the input metadata in a
* cache as an example of caching information for use
* in a viewer.
*/
public class ThirdCopyEngineNode extends EngineNode
implements CNKProcJavaTransformExec {
// Statics referred to by node model and dialog to
// set/get properties
public final static String COLUMNS_ATTRIBUTE_TAG =
"colsToCopy";
public final static String INPUT_MD_CACHE_NAME =
"imdCache";
// Store information for use in all chunks
private Vector m_columnNames = null;
Comentarios a estos manuales