Brian Cassidy > WebService-Lucene-0.10 > WebService::Lucene::Iterator

Download:
WebService-Lucene-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

WebService::Lucene::Iterator - Iterator for lazy document inflation

SYNOPSIS ^

    use WebService::Lucene::Iterator;
    
    my $iterator = WebService::Lucene::Iterator->new( $documents );

DESCRIPTION ^

All search results are returned as XML::Atom::Entry objects which get inflated to WebService::Lucene::Document objects. This module allows us to delay that inflation as late as possible.

METHODS ^

new( $documents )

Generates a new iterator that will iterate through $documents as requested.

iterator( [$iterator] )

Accessor for the iterator closure.

next( )

Inflates and returns the next document object.

AUTHORS ^

COPYRIGHT AND LICENSE ^

Copyright 2006-2009 National Adult Literacy Database

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.