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

Pavel Tupitsyn commented on IGNITE-2122:
----------------------------------------

1) What do you mean by "split"? Rename?
2) We should not do this. Accepting IEnumerable in writer is very important, it 
is not a specific case. LINQ and yield-style enumerators return IEnumerable, we 
should not force the user to do an extra memory copy if we can easily write 
lazy enumeration directly to a stream.
3) Not sure about this either, current API avoids all possible casts on the 
user side, allows any kind of custom collection/dictionary, allows filtering 
and other processing in the adder. And it provides a simple overload without 
adder/factory.

Imagine that user wants to read collection into HashSet<T>. Current API 
provides the most efficient way of doing this in one line. What you suggest 
will require allocating extra collection.

> .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