// SUM
{
Matcher matcher = patternSum.matcher(fieldSelectorString);
if( matcher.matches() ) {
return new FieldSelectorFunction(FieldSelectorFunction.Type.SUM, matcher.group(1));
}
}
// MIN
{
Matcher matcher = patternMin.matcher(fieldSelectorString);
if( matcher.matches() ) {
return new FieldSelectorFunction(FieldSelectorFunction.Type.MIN, matcher.group(1));
}
}
// MAX
{
Matcher matcher = patternMax.matcher(fieldSelectorString);
if( matcher.matches() ) {
return new FieldSelectorFunction(FieldSelectorFunction.Type.MAX, matcher.group(1));
}
}
// Score
{