WebService::Lucene::Iterator - Iterator for lazy document inflation
use WebService::Lucene::Iterator; my $iterator = WebService::Lucene::Iterator->new( $documents );
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.
Generates a new iterator that will iterate through $documents as requested.
$documents
Accessor for the iterator closure.
Inflates and returns the next document object.
Brian Cassidy <brian.cassidy@nald.ca>
Adam Paynter <adam.paynter@nald.ca>
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.
To install WebService::Lucene, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Lucene
CPAN shell
perl -MCPAN -e shell install WebService::Lucene
For more information on module installation, please visit the detailed CPAN module installation guide.