Guest User

Kettle Code Formatting 5.0.0.1

a guest
Sep 23rd, 2013
52
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   public void loadRow(Object[] r) {
  2.     for (int i = 0; i < columnList.length; i++) {
  3.       columnList[i].setPayload(r[i]);
  4.     }
  5.   }
  6.  
  7.   public void execute() {
  8.     StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
  9.     for (int i = 0; i < columnList.length; i++) {
  10.       session.insert(columnList[i]);
  11.     }
  12.  
  13.     session.fireAllRules();
  14.  
  15.     Collection<Object> oList = session.getObjects(new ObjectFilter() {
  16.       @Override
  17.       public boolean accept(Object o) {
  18.         if (o instanceof Column && !((Column) o).isExternalSource()) {
  19.           return true;
  20.         }
  21.         return false;
  22.       }
  23.     });
RAW Paste Data