936937938939940941942943944945
private int cnt = 0; @Override public void join(Record record1, Record record2, Collector<Record> out) { if (++this.cnt >= 10) { throw new ExpectedTestException(); } out.collect(record1); }
219220221222223224225226227228229
sum += this.combineValue.getValue(); } if (++this.cnt >= 10) { throw new ExpectedTestException(); } this.combineValue.setValue(sum); element.setField(1, this.combineValue); out.collect(element);
133134135136137138139140141
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); }
347348349350351352353354355356357
element = records.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);
587588589590591592593594595
private int cnt = 0; @Override public void cross(Record record1, Record record2, Collector<Record> out) { if (++this.cnt >= 10) { throw new ExpectedTestException(); } out.collect(record1); }
415416417418419420421422423424425426427428429430431432433
while (records2.hasNext()) { Record record2 = records2.next(); 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); } }