Commit 892b848b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Update copyright year and move license to top (as in other Core modules).

parent 7c3aa370
=head1 NAME
Bio::EnsEMBL::Utils::Iterator
=head1 SYNOPSIS
my $variation_iterator = $variation_adaptor->fetch_iterator_by_VariationSet($1kg_set);
while (my $variation = $variation_iterator->next) {
# operate on variation object
print $variation->name, "\n";
}
=head1 DESCRIPTION
Some adaptor methods may return more objects than can fit in memory at once, in these cases
you can fetch an iterator object instead of the usual list reference. The iterator object
allows you to iterate over the set of objects (using the next() method) without loading the
entire set into memory at once.
=head1 LICENSE
Copyright (c) 1999-2010 The European Bioinformatics Institute and
Copyright (c) 1999-2011 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
......@@ -39,6 +18,33 @@
=cut
=head1 NAME
Bio::EnsEMBL::Utils::Iterator
=head1 SYNOPSIS
my $variation_iterator =
$variation_adaptor->fetch_iterator_by_VariationSet($1kg_set);
while ( my $variation = $variation_iterator->next ) {
# operate on variation object
print $variation->name, "\n";
}
=head1 DESCRIPTION
Some adaptor methods may return more objects than can fit in memory at
once, in these cases you can fetch an iterator object instead of the
usual list reference. The iterator object allows you to iterate over the
set of objects (using the next() method) without loading the entire set
into memory at once.
=head1 METHODS
=cut
package Bio::EnsEMBL::Utils::Iterator;
use strict;
......@@ -127,4 +133,3 @@ sub has_next {
}
1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment