ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Re: IGNITE-3999: Design discussion
Date Mon, 07 Nov 2016 06:09:47 GMT
Hi Amir,

Having POJO class QueryField looks like a good idea to me. Because we will
be able to encapsulate more field information into it over time. E.g. we
can add "keyField" flag for DML there.

I would even think about removing map from method signature in favor of
simple list/array:

void setFields(QueryField...);


07 нояб. 2016 г. 7:32 пользователь "Amir Akhmedov" <amir.akhmedov@gmail.com>

Hi Igniters,

I was looking into ticket IGNITE-3999 and I have a concern on this, can you
please advise what will be the correct way to solve it. As of today, SQL
fields are defined as setFields(LinkedHashMap<String, String> fields), with
introduction of case insensitive property need to create a new POJO
e.g. QueryField(String
type, boolean caseInsensitive). So, to keep backward compatibility we can
introduce a new method e.g. setQueryFields(LinkedHashMap<String,
QueryField> fields), in my opinion it looks like counter-intuitive with
existing setFields method. Another possible way, this change can be done
with changing the generic type of setFields (which will not be backward
compatible) and released in Ignite 2.0.
Please advise on this, or maybe you have an alternative solutions?

Sincerely Yours Amir Akhmedov

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message