Search::GIN::Indexable - use Moose::Role;


Search-GIN documentation Contained in the Search-GIN distribution.

Index


Code Index:

NAME

Top

Search::GIN::Indexable - use Moose::Role;

VERSION

Top

version 0.08

SYNOPSIS

Top

    use Search::GIN::Indexable;

DESCRIPTION

Top

AUTHOR

Top

Yuval Kogman <nothingmuch@cpan.org>

COPYRIGHT AND LICENSE

Top


Search-GIN documentation Contained in the Search-GIN distribution.

use strict;
use warnings;
package Search::GIN::Indexable;
BEGIN {
  $Search::GIN::Indexable::VERSION = '0.08';
}
# ABSTRACT:

use Moose::Role;

requires 'gin_extract_values';

sub gin_id {
    my $self = shift;
    return $self;
}

sub gin_compare_values {
    my ( $self, $one, $two ) = @_;
    $one cmp $two;
}

sub gin_consistent {
    my ( $self, $index, $query, @args ) = @_;
    $query->gin_consistent($index, $self, @args);
}

1;




__END__