| Plucene documentation | Contained in the Plucene distribution. |
Plucene::Index::TermInfo - Information on an index term
my $term_info = Plucene::Index::TermInfo->new({
doc_freq => $doc_freq,
freq_pointer => $freq_pointer,
prox_pointer => $prox_pointer,
});
This class holds information about an index term.
Get / set term info.
$term_info1->copy_in($term_info2); my $term_info1 = $term_info2->clone;
These will make $term_info1 be the same as $term_info2.
| Plucene documentation | Contained in the Plucene distribution. |
package Plucene::Index::TermInfo;
use strict; use warnings; use Carp; use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors(qw( doc_freq freq_pointer prox_pointer ));
sub copy_in { my ($self, $other) = @_; %$self = %$other; return $self; } sub clone { my $self = shift; return bless {%$self} => ref $self; } 1;