datawave
datawave copied to clipboard
Refactor LimitFields
Refactor the LimitFields class and add unit tests.
The work done to address https://github.com/NationalSecurityAgency/datawave/issues/1678 was a limited-scope bugfix, but surfaced some issues with readability and object creation.
- variable names that are too long and don't make sense
- method names that are too long and don't make sense
- extra object creation inside deeply nested loops
- accurate docs
I think LimitFields has actually gotten worse since this was written...but a few performance bugs were ironed out in the process. So maybe call it a draw.