File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
crud/src/main/java/com/redhat/lightblue/assoc/ep Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ public StepResult<ResultDocument> getResults(ExecutionContext ctx) {
44
44
public Stream <ResultDocument > stream () {
45
45
// Create new documents for each document in the source. This will
46
46
// create the correct slots based on this execution block
47
- return super .stream ().map (d -> new ResultDocument (block , d .getDoc ()));
47
+ return super .stream ().map (d -> {
48
+ if (recordResultSetSize )
49
+ ctx .incMatchCount ();
50
+ return new ResultDocument (block , d .getDoc ());
51
+ });
48
52
}
49
53
};
50
54
}
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ public void setMatchCount(int c) {
55
55
matchCount = c ;
56
56
}
57
57
58
+ public void incMatchCount () {
59
+ matchCount ++;
60
+ }
61
+
58
62
public void close () {
59
63
executor .shutdown ();
60
64
}
You can’t perform that action at this time.
0 commit comments