NationalSecurityAgency/datawave

Refactor ContentFunctionsDescriptor fieldsAndTerms method

apmoriarty opened this issue · 0 comments

SonarLint flags the fieldsAndTerms method in the ContentFunctionsDescriptor at a cognitive complexity of 97. The ideal target is 15.

There is some pre-computation work that doesn't need to happen until later, if at all.

Realistically a record-style object that contains a set of fields and a set of values is all that's needed. An array of sets is weird, but works for now.