[ 
https://issues.apache.org/jira/browse/IGNITE-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063716#comment-15063716
 ] 

Vladimir Ozerov edited comment on IGNITE-2122 at 12/18/15 9:00 AM:
-------------------------------------------------------------------

Interfaces still looks weird to me. They are not simmetrical, we loose adder 
for non-generic collections, etc..

Can we have the following reader interfaces?
{code}
IEnumerable ReadEnumerable();
IEnumerable ReadEnumerable(Func<int, IEnumerable> factory, Action<IEnumerable, 
object> adder);
IEnumerable<T> ReadEnumerable<T>();
IEnumerable<T> ReadEnumerable<T>(Func<int, IEnumerable<T>> factory, 
Action<IEnumerable<T>, T> adder);

ICollection ReadCollection();
ICollection ReadCollection(Func<int, ICollection> factory, Action<ICollection, 
object> adder);
ICollection<T> ReadCollection<T>(Func<int, ICollection<T>> factory = null);

IDictionary ReadDictionary(Func<int, IDictionary> factory = null);
IDictionary<K, V> ReadDictionary<K, V>(Func<int, IDictionary<K, V>> factory = 
null);
{code}


was (Author: vozerov):
Interfaces still looks weird to me. They are not simmetrical, we loose adder 
for non-generic collections, etc..

Can we have the following reader interfaces?
{code}
IEnumerable ReadEnumerable();
IEnumerable ReadEnumerable(Func<int, IEnumerable> factory, Action<IEnumerable, 
object> adder);
IEnumerable<T> ReadEnumerable<T>();
IEnumerable<T> ReadEnumerable<T>(Func<int, IEnumerable<T>> factory, 
Action<IEnumerable<T>, T> adder);

ICollection ReadCollection2();
ICollection ReadCollection2(Func<int, ICollection> factory, Action<ICollection, 
object> adder);
ICollection<T> ReadCollection<T>(Func<int, ICollection<T>> factory = null);

IDictionary ReadDictionary(Func<int, IDictionary> factory = null);
IDictionary<K, V> ReadDictionary<K, V>(Func<int, IDictionary<K, V>> factory = 
null);
{code}

> .NET: Add generic Read/WriteCollection and Read/WriteDictionary methods.
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-2122
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2122
>             Project: Ignite
>          Issue Type: Task
>          Components: general, interop
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ozerov
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>             Fix For: 1.5
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to