Ricardo SIGNES > Metabase-1.003 > Metabase::Librarian

Download:
Metabase-1.003.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.003   Source  

NAME ^

Metabase::Librarian - Front-end interface to Metabase storage

VERSION ^

version 1.003

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

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 ) {
      ...
    }
  }

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2013 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
syntax highlighting: