NAME
Metabase::Librarian - Front-end interface to Metabase storage
VERSION
version 0.015
SYNOPSIS
my $ml = Metabase::Librarian->new(
archive => $archive,
index => $index,
);
DESCRIPTION
The Metabase::Librarian class provides a front-end interface to user-defined Metabase storage and indexing objects.
USAGE
new
my $ml = Metabase::Librarian->new(
archive => $archive,
index => $index,
);
Librarian constructor. Takes two required arguments
archive
-- a Metabase::Archive subclassindex
-- a Metabase::Index subclass
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 ) {
...
}
}
BUGS
...no human would stack books this way...
Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted through the web interface at http://rt.cpan.org/Dist/Display.html?Queue=Metabase
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHORS
David Golden <dagolden@cpan.org>
Ricardo Signes <rjbs@cpan.org>
Leon Brocard <acme@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2010 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004