Allowing multiple filters to be used chained together is most definitely something we want to support, although in most cases they would probably be different filters, say array to extract one value followed by a deadband filter say, possibly with a time stamp filter as well. Repeating the same kind of filter seems less necessary, but given that we can support it at no cost I don’t see why we should try to prevent it.
I understand that some JSON parsers won’t handle duplicate keys, is that what concerns you?
- Andrew
--
Complicity is easy, Simplexity takes real work
> On Mar 28, 2020, at 2:45 PM, Ben Franksen via Core-talk <core-talk at aps.anl.gov> wrote:
>
> The array filter test (modules/database/test/std/filters/arrTest.cpp)
> creates "double" array filters that look like:
>
> {"arr":{},"arr":{"s":x,"e":y,"i":z}}
>
> Apparently this is interpreted by EPICS base to mean two array filters
> in succesion, first the left, then the right.
>
> According to the JSON standard this is allowed. But is it a good idea?
> Are there practical use cases? (The test where I've seen this doesn't
> count IMO).
>
> Cheers
> Ben
>
> ________________________________
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
> Geschäftsführung: Prof. Dr. Bernd Rech (Sprecher), Prof. Dr. Jan Lüning, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
> <pEpkey.asc>
- Replies:
- Re: double filters Ben Franksen via Core-talk
- Re: double filters Ralph Lange via Core-talk
- References:
- double filters Ben Franksen via Core-talk
- Navigate by Date:
- Prev:
Re: [Merge] ~bfrk/epics-base:zero-size-array-request into epics-base:7.0 Ben Franksen via Core-talk
- Next:
Re: [Merge] ~anj/epics-base/+git/base-7.0:typed-dsets into epics-base:7.0 mdavidsaver via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
double filters Ben Franksen via Core-talk
- Next:
Re: double filters Ben Franksen via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|