48
// Some error checking
if (inColNum < 0) {
proc.addError("Column '" + colName +
"' not present in input metadata");
}
if (outColNum < 0) {
proc.addError("Column '" + colName +
"' not present in output metadata");
}
if (!inMD.getColumnType(inColNum).equals(
outMD.getColumnType(outColNum))) {
proc.addError(
"Input and output column types do not match for column '" +
colName + "'");
}
if (!proc.hasError()) {
rowCount = proc.getChunkInputRows(0);
proc.copyData(0, outColNum, 0, 0,
inColNum, 0, rowCount, 1);
}
}
}
}
/**
* Stores the input metadata in a cache for use when
* viewing. Called after the proc has been executed.
*/
public void procExtractResults(CNKProc proc)
throws Exception {
setNodeCache(INPUT_MD_CACHE_NAME, getInputMetaData(0));
}
/**
* Delete the information that we stored.
*/
public void procDelete(CNKProc proc) {
super.procDelete(proc);
Comentários a estes Manuais