The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

KiokuDB::Resolver - Assigns UIDs as necessary to objects

SYNOPSIS

    use KiokuDB::Resolver;

    my $r = KiokuDB::Resolver->new(
        live_objects => $live_objects,
    );

    my $id = $r->object_to_id($object);

DESCRIPTION

This object wraps the live object set but also handles UID extraction and generation.

This is used during collapsing in order to provide IDs for unencountered objects.

This class may be superseded by the typemap in the future.

ATTRIBUTES

live_objects

The underlying live object set.

METHODS

get_object_id $object

Generates an ID for an object automatically.

object_to_id $object
objects_to_ids @objects

Returns or assigns IDS to the given objects.

register_new_ids

Delegates to insert. Called by objects_to_ids when new IDs have been generated.