主权项 |
1. A computer-implemented method for handling data comprising:
(a) receiving an electronic data record having one or more fields and a count value; (b) adding, by one or more computer systems, the count value of the data record to a count value of the top row of a stack when all values of the one or more fields of the data record are included among one or more field values of the top row; (c) rolling up, by one or more computer systems, the top row when less than all of the one or more field values of the data record are included among the one or more field values of the top row and the count value of the top row is less than a threshold value; and removing the top row and adding the count value of the removed top row to the count value of the new top row when all of the one or more field values of the top row are included among the one or more field values of the row below the top row after roll-up; (d) outputting, by one or more computer systems, the top row when a top row of the stack is a super row of a last output row, wherein the top row is a super row of the last output row if non-wildcard field values of the top row remain the same as the field values of the last output row after one or more rollups of the last output row; and outputting the top row and inserting the data record onto the stack as the new top row when less than all of the one or more field values of the data record are included among the one or more field values of the top row and the count value of the top row is equal to or greater than the threshold value; and (e) reporting the output top row to a user as an indication of data record grouping. |