1RDF::Trine::Iterator::BUisnedrinCgosn:t:rRMiDabFtu:et:reTidrailPnieezr:el:dI(Dt3oe)cruamteonrt:a:tBiionndings::Materialized(3)
2
3
4

NAME

6       RDF::Trine::Iterator::Bindings::Materialized - Materialized bindings
7       class
8

VERSION

10       This document describes RDF::Trine::Iterator::Bindings::Materialized
11       version 1.019
12

SYNOPSIS

14           use RDF::Trine::Iterator;
15
16           my $iterator = RDF::Trine::Iterator::Bindings::Materialized->new( \@data, \@names );
17           while (my $row = $iterator->next) {
18               my @vars        = keys %$row;
19               # do something with @vars
20           }
21
22           my $iterator = RDF::Trine::Iterator::Bindings->new( \&code, \@names );
23           my $miter = $iterator->materialize;
24           while (my $row = $miter->next) {
25               my @vars        = keys %$row;
26               # do something with @vars
27           }
28           $miter->reset; # start the iteration again
29           while (my $row = $miter->next) {
30               # ...
31           }
32

METHODS

34       Beyond the methods documented below, this class inherits methods from
35       the RDF::Trine::Iterator::Bindings class.
36
37       "new ( \@results, \@names, %args )"
38           Returns a new materialized bindings interator. Results must be a
39           reference to an array containing individual results.
40
41       "reset"
42           Returns the iterator to its starting position.
43
44       "next"
45           Returns the next item in the iterator.
46
47       "length"
48           Returns the number of elements in the iterator.
49

BUGS

51       Please report any bugs or feature requests to through the GitHub web
52       interface at <https://github.com/kasei/perlrdf/issues>.
53

AUTHOR

55       Gregory Todd Williams  "<gwilliams@cpan.org>"
56
58       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
59       software; you can redistribute it and/or modify it under the same terms
60       as Perl itself.
61
62
63
64perl v5.38.0                   RDF2:0:2T3r-i0n7e-:2:1Iterator::Bindings::Materialized(3)
Impressum