Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
892b848b
Commit
892b848b
authored
Jan 11, 2011
by
Andreas Kusalananda Kähäri
Browse files
Update copyright year and move license to top (as in other Core modules).
parent
7c3aa370
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
23 deletions
+28
-23
modules/Bio/EnsEMBL/Utils/Iterator.pm
modules/Bio/EnsEMBL/Utils/Iterator.pm
+28
-23
No files found.
modules/Bio/EnsEMBL/Utils/Iterator.pm
View file @
892b848b
=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-201
0
The European Bioinformatics Institute and
Copyright (c) 1999-201
1
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment