Data::Hive::PathPacker - a thing that converts paths to strings and then back


Data-Hive documentation Contained in the Data-Hive distribution.

Index


Code Index:

NAME

Top

Data::Hive::PathPacker - a thing that converts paths to strings and then back

VERSION

Top

version 1.008

DESCRIPTION

Top

Data::Hive::PathPacker classes are used by some Data::Hive::Store classes to convert hive paths to strings so that deep hives can be stored in flat storage.

Path packers must implement two methods:

METHODS

Top

pack_path

  my $str = $packer->pack_path( \@path );

This method is passed an arrayref of path parts and returns a string to be used as a key in flat storage for the path.

unpack_path

  my $path_arrayref = $packer->unpack_path( $str );

This method is passed a string and returns an arrayref of path parts represented by the string.

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


Data-Hive documentation Contained in the Data-Hive distribution.

use strict;
use warnings;
package Data::Hive::PathPacker;
BEGIN {
  $Data::Hive::PathPacker::VERSION = '1.008';
}
# ABSTRACT: a thing that converts paths to strings and then back


1;

__END__