349350351352353354355356357358359
element = next; valCnt++; } if (++this.cnt >= 10) { throw new ExpectedTestException(); } element.getField(0, this.key); this.value.setValue(valCnt - this.key.getValue()); element.setField(1, this.value);
473474475476477478479480481482
private int cnt = 0; @Override public void join(Record record1, Record record2, Collector<Record> out) throws Exception { if (++this.cnt >= 10) { throw new ExpectedTestException(); } out.collect(record1); }
413414415416417418419420421422423424425426427428429430431
for (Record record2 : records2) { if (val1Cnt == 0) { if(++this.cnt>=10) { throw new ExpectedTestException(); } out.collect(record2); } else { for (int i=0; i<val1Cnt; i++) { if(++this.cnt>=10) { throw new ExpectedTestException(); } out.collect(record2); } }
594595596597598599600601602
private int cnt = 0; @Override public Record cross(Record record1, Record record2) { if (++this.cnt >= 10) { throw new ExpectedTestException(); } return record1; }
949950951952953954955956957
227228229230231232233234235236237
sum += this.combineValue.getValue(); } if (++this.cnt >= 10) { throw new ExpectedTestException(); } this.combineValue.setValue(sum); element.setField(1, this.combineValue); out.collect(element);
140141142143144145146147148
private int cnt = 0; @Override public void map(Record record, Collector<Record> out) throws Exception { if (++this.cnt >= 10) { throw new ExpectedTestException(); } out.collect(record); }