You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/06/17 10:10:00 UTC

[jira] [Commented] (JENA-966) LazyIterator

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

Andy Seaborne commented on JENA-966:
------------------------------------

There are no uses of this class in the codebase anymore.  We can remove it.

> LazyIterator
> ------------
>
>                 Key: JENA-966
>                 URL: https://issues.apache.org/jira/browse/JENA-966
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: Jena 3.0.0
>            Reporter: Claude Warren
>            Assignee: Claude Warren
>
> LazyIterator is an abstract class.  The documentation indicates that the create() method needs to be overridden to create an instance.  From this I would expect that 
> now LazyIterator(){
> @Override
> public ExtendedIterator<Model> create() {
> 			...
> }};
> Would work however LazyIterator does not override:
> remoteNext(), andThen(), toList(), and toSet().
> I believe these should be implemented in the class.



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

Re: [jira] [Commented] (JENA-966) LazyIterator

Posted by "ajs6f@virginia.edu" <aj...@virginia.edu>.
How about using a Java 8 Supplier<Iterator<T>>? That's pretty lazy.

---
A. Soroka
The University of Virginia Library

On Jun 17, 2015, at 5:07 AM, Claude Warren <cl...@xenei.com> wrote:

> I wanted to use it in an application.  Is there a replacement?
> 
> On Wed, Jun 17, 2015 at 9:10 AM, Andy Seaborne (JIRA) <ji...@apache.org>
> wrote:
> 
>> 
>>    [
>> https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589458#comment-14589458
>> ]
>> 
>> Andy Seaborne commented on JENA-966:
>> ------------------------------------
>> 
>> There are no uses of this class in the codebase anymore.  We can remove it.
>> 
>>> LazyIterator
>>> ------------
>>> 
>>>                Key: JENA-966
>>>                URL: https://issues.apache.org/jira/browse/JENA-966
>>>            Project: Apache Jena
>>>         Issue Type: Bug
>>>         Components: Core
>>>   Affects Versions: Jena 3.0.0
>>>           Reporter: Claude Warren
>>>           Assignee: Claude Warren
>>> 
>>> LazyIterator is an abstract class.  The documentation indicates that the
>> create() method needs to be overridden to create an instance.  From this I
>> would expect that
>>> now LazyIterator(){
>>> @Override
>>> public ExtendedIterator<Model> create() {
>>>                      ...
>>> }};
>>> Would work however LazyIterator does not override:
>>> remoteNext(), andThen(), toList(), and toSet().
>>> I believe these should be implemented in the class.
>> 
>> 
>> 
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>> 
> 
> 
> 
> -- 
> I like: Like Like - The likeliest place on the web
> <http://like-like.xenei.com>
> LinkedIn: http://www.linkedin.com/in/claudewarren


Re: [jira] [Commented] (JENA-966) LazyIterator

Posted by "Bruno P. Kinoshita" <ki...@apache.org>.
I think there are interesting iterators in Commons Collections and some utility code in Commons Functor (unreleased) too.
HTH
Bruno

      From: Andy Seaborne <an...@apache.org>
 To: dev@jena.apache.org 
 Sent: Wednesday, June 17, 2015 9:50 PM
 Subject: Re: [jira] [Commented] (JENA-966) LazyIterator
   
On 17/06/15 10:07, Claude Warren wrote:
> I wanted to use it in an application.  Is there a replacement?

I just found IteratorDelayedInitialization in jena-base.

What also springs to mind is looking at the iterators in Commons.  They 
added forms at your suggestion of looking at jena-core iterators.

    Andy




>
> On Wed, Jun 17, 2015 at 9:10 AM, Andy Seaborne (JIRA) <ji...@apache.org>
> wrote:
>
>>
>>      [
>> https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589458#comment-14589458
>> ]
>>
>> Andy Seaborne commented on JENA-966:
>> ------------------------------------
>>
>> There are no uses of this class in the codebase anymore.  We can remove it.
>>
>>> LazyIterator
>>> ------------
>>>
>>>                  Key: JENA-966
>>>                  URL: https://issues.apache.org/jira/browse/JENA-966
>>>              Project: Apache Jena
>>>          Issue Type: Bug
>>>          Components: Core
>>>    Affects Versions: Jena 3.0.0
>>>            Reporter: Claude Warren
>>>            Assignee: Claude Warren
>>>
>>> LazyIterator is an abstract class.  The documentation indicates that the
>> create() method needs to be overridden to create an instance.  From this I
>> would expect that
>>> now LazyIterator(){
>>> @Override
>>> public ExtendedIterator<Model> create() {
>>>                        ...
>>> }};
>>> Would work however LazyIterator does not override:
>>> remoteNext(), andThen(), toList(), and toSet().
>>> I believe these should be implemented in the class.
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>>
>
>
>



   

Re: [jira] [Commented] (JENA-966) LazyIterator

Posted by Andy Seaborne <an...@apache.org>.
On 17/06/15 10:07, Claude Warren wrote:
> I wanted to use it in an application.  Is there a replacement?

I just found IteratorDelayedInitialization in jena-base.

What also springs to mind is looking at the iterators in Commons.  They 
added forms at your suggestion of looking at jena-core iterators.

	Andy


>
> On Wed, Jun 17, 2015 at 9:10 AM, Andy Seaborne (JIRA) <ji...@apache.org>
> wrote:
>
>>
>>      [
>> https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589458#comment-14589458
>> ]
>>
>> Andy Seaborne commented on JENA-966:
>> ------------------------------------
>>
>> There are no uses of this class in the codebase anymore.  We can remove it.
>>
>>> LazyIterator
>>> ------------
>>>
>>>                  Key: JENA-966
>>>                  URL: https://issues.apache.org/jira/browse/JENA-966
>>>              Project: Apache Jena
>>>           Issue Type: Bug
>>>           Components: Core
>>>     Affects Versions: Jena 3.0.0
>>>             Reporter: Claude Warren
>>>             Assignee: Claude Warren
>>>
>>> LazyIterator is an abstract class.  The documentation indicates that the
>> create() method needs to be overridden to create an instance.  From this I
>> would expect that
>>> now LazyIterator(){
>>> @Override
>>> public ExtendedIterator<Model> create() {
>>>                        ...
>>> }};
>>> Would work however LazyIterator does not override:
>>> remoteNext(), andThen(), toList(), and toSet().
>>> I believe these should be implemented in the class.
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>>
>
>
>


Re: [jira] [Commented] (JENA-966) LazyIterator

Posted by Claude Warren <cl...@xenei.com>.
I wanted to use it in an application.  Is there a replacement?

On Wed, Jun 17, 2015 at 9:10 AM, Andy Seaborne (JIRA) <ji...@apache.org>
wrote:

>
>     [
> https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589458#comment-14589458
> ]
>
> Andy Seaborne commented on JENA-966:
> ------------------------------------
>
> There are no uses of this class in the codebase anymore.  We can remove it.
>
> > LazyIterator
> > ------------
> >
> >                 Key: JENA-966
> >                 URL: https://issues.apache.org/jira/browse/JENA-966
> >             Project: Apache Jena
> >          Issue Type: Bug
> >          Components: Core
> >    Affects Versions: Jena 3.0.0
> >            Reporter: Claude Warren
> >            Assignee: Claude Warren
> >
> > LazyIterator is an abstract class.  The documentation indicates that the
> create() method needs to be overridden to create an instance.  From this I
> would expect that
> > now LazyIterator(){
> > @Override
> > public ExtendedIterator<Model> create() {
> >                       ...
> > }};
> > Would work however LazyIterator does not override:
> > remoteNext(), andThen(), toList(), and toSet().
> > I believe these should be implemented in the class.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>



-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren