Metabase::Librarian - Front-end interface to Metabase storage
version 1.003
my $ml = Metabase::Librarian->new( archive => $archive, index => $index, );
The Metabase::Librarian class provides a front-end interface to user-defined Metabase storage and indexing objects.
new
Librarian constructor. Takes two required arguments
archive -- a Metabase::Archive subclass
archive
index -- a Metabase::Index subclass
index
store
$ml->store( $fact );
search
$ml->search( %spec );
See Metabase::Index for spec details.
extract
$fact = $ml->extract( $guid );
exists
if ( $ml->exists( $guid ) ) { do_stuff() }
iterator
my $stream = $ml->iterator; until ( $stream->is_done ) { foreach my $fact ( $stream->items ) { ... } }
David Golden <dagolden@cpan.org>
Ricardo Signes <rjbs@cpan.org>
Leon Brocard <acme@cpan.org>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Metabase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Metabase
CPAN shell
perl -MCPAN -e shell install Metabase
For more information on module installation, please visit the detailed CPAN module installation guide.