Functions can have optional parameters, or indeed a variable number of
parameters.

   - Compare FilterFunction_strConcat
   
<https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/function/FilterFunction_strConcat.java>
(fixed)
   vs ConcatenateFunction
   
<https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/function/string/ConcatenateFunction.java>
    (variable)
   - Concatinate
   
<https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/function/InterpolateFunction.java#L267>
where
   a variable number of table elements are supplied, and an optional last
   parameter is used.
   NAME = new FunctionNameImpl("Interpolate", lookup, table, mode,

--
Jody Garnett


On Tue, 28 Apr 2020 at 23:54, Mauro Bartolomeoli <
mauro.bartolome...@geo-solutions.it> wrote:

> Hi Jody,
>
>
> Il giorno ven 24 apr 2020 alle ore 22:14 Jody Garnett <
> jody.garn...@gmail.com> ha scritto:
>
>> Thanks for the good discussion, I still think I like equalsTo( value,
>> value, matchPolicy) just so there are less concepts around. If you really
>> do not like it can you do equalToMultipe( value, value, matchAction) so the
>> sort order works out closer :)
>>
>
> equalTo already exists, so I went for a similar, but different name.
> equalToMultiple is fine too.
> I have a question here: from what I understood filter functions need to
> have a fixed set of parameters, so I cannot simply reuse equalTo and add an
> optional argument to it. Is this correct?
>
>
>>
>> Also. please do not name the class FilterFunction_equalToMultiple <--
>> this "FilterFunction_" prefix is the result of an old code generator David
>> Blasby wrote and I have never been able to get folks to copy copying the
>> pattern.
>>
>
> Oh, I didn't know about that, I will rename stuff properly.
>
> --
>
> Regards,
>
> Mauro Bartolomeoli
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Dott. Mauro Bartolomeoli
> @mauro_bart
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
>
> mobile: +39 393 904 1756
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to