The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Giddy::Collection::InMemory - An in-memory collection (result of queries).

VERSION

version 0.012_001

SYNOPSIS

        my $in_memory_collection = $collection->find({ _name => qr/wow/ });

        # use $in_memory_collection just like any other Giddy::Collection object

DESCRIPTION

This class represents in-memory collections. These are created by running find() and grep() queries on other collection (either real collections represented by Giddy::Collection or other in-memory collections).

Except from not being able to drop in-memory collections, using them is performed exactly the same as using real ones, so refer to Giddy::Collection for details.

EXTENDS

Giddy::Collection

ATTRIBUTES

_documents

An array-reference of the documents in the collection. Not to be used externally.

_loaded

A hash-ref containing loaded document structures. Not tobe used externally.

_query

A hash-ref with details about the query that created the collection. Not to be used externally.

METHODS

Just the same as in Giddy::Collection, of course, except for:

drop()

Doesn't do anything. Really.

AUTHOR

Ido Perlmuter, <ido at ido50.net>

BUGS

Please report any bugs or feature requests to bug-giddy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Giddy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

        perldoc Giddy::Collection::InMemory

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Ido Perlmuter.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.