You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Denis Magda <dm...@apache.org> on 2020/06/01 20:40:51 UTC
Re: [DISCUSSION] Key and Value fields with same name and SQL DML
Hi Alexey,
Let me answer the second question first
How would you change ICache interface which has this member?
We will keep the key-value interface at least for backward compatibility.
Plus, it might be preferred by those who use caching APIs only. So, this
method will stay as-is.
What whould be returned from the query like this "select
> _key from cache" if we don't know the type of the key? ExpandoObject,
> Tuple,
> BinaryObject?
I would go for BinaryObject. Also, I would review if we really need to make
"_key" visible for application developers.
-
Denis
On Tue, May 26, 2020 at 4:22 AM Alexey Sasov <sa...@gmail.com> wrote:
> Hello. Looks good. What whould be returned from the query like this "select
> _key from cache" if we don't know the type of the key? ExpandoObject,
> Tuple,
> BinaryObject? How would you change ICache interface which has this member?
>
> /// <summary>Queries cache.</summary>
> /// Query.
> /// <returns>Cursor.</returns>
> IQueryCursor<ICacheEntry<TK, TV>> Query(QueryBase qry);
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>
Re: [DISCUSSION] Key and Value fields with same name and SQL DML
Posted by Alexey Sasov <sa...@gmail.com>.
Denis, hello. Thanks for your explanation. I can see some difficulties in
matching your new idea with the current functionality of key-value approach.
From this point of view, Alexey Kukushkin's approach looks less confusing to
me and easier to implement. But this could be due to the lack of
understanding of the product. In general, i'm also quite comfortable with
your way of performing the feature.
Thanks in advance, Alexey.
--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/