That is a good point, Galder. Unfortunately the return type is lost since
we only pass a name for the filterconverter factory instead of the
converter which contains the type. We would have to allow the code to
specify the type in the assigned variable it is returned to or ask for a
Class instance to be passed for inline type inference.
<E> CloseableIterator<E> retrieveEntries(...)
CloseableIterator<E> retrieveEntries(..., Class<E> returnType)
:(
- Will
On Thu, May 7, 2015 at 11:07 AM Galder Zamarreño <galder(a)redhat.com> wrote:
Looks good, but had a question.
CloseableIterator is typed as CloseableIterator<E>, what's the type that
the method would return? I guess that would be dependant on the converter?
How are you going to represent that?
Cheers,
> On 28 Apr 2015, at 16:46, Gustavo Fernandes <gustavo(a)infinispan.org>
wrote:
>
> Hi all, just updated [1]
>
> Comments and feedback appreciated!
>
> [1]
https://github.com/infinispan/infinispan/wiki/Remote-Iterator
>
> Thanks,
> Gustavo
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder Zamarreño
galder(a)redhat.com
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev