EDOBE XDOM PMML Instrukcja Użytkownika Strona 48

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 47
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);
Przeglądanie stron 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag