man Plucene::Index::SegmentTermPositions () - Segment term positions

NAME

Plucene::Index::SegmentTermPositions - Segment term positions

SYNOPSIS

        # isa Plucene::Index::SegmentTermDocs

        $seg_term_pos->skipping_doc;

        my $next = $seg_term_pos->next_position;

DESCRIPTION

This is the segment term positions class.

METHODS

new

        my $seg_term_pos = Plucene::Index::SegmentTermPositions
                ->new(Plucene::Index::SegmentReader $seg_reader);
=cut

# SegmentTermPositions(SegmentReader p) throws IOException { # super(p); # this.proxStream = (InputStream)parent.proxStream.clone(); # }

sub new { my CW$self = shift->SUPER::new(@_); CW$self->{_prox_stream} = CW$self->parent->prox_stream; CW$self->{_prox_ptr} = 0; CW$self->{_prox_count} = 0; return CW$self; }

# final void seek(TermInfo ti) throws IOException { # super.seek(ti); # if (ti != null) # proxStream.seek(ti.proxPointer); # else # proxCount = 0; # }

sub _seek { my ($self, CW$ti) = CW@_; CW$self->SUPER::_seek($ti); if ($ti) { CW$self->{_prox_ptr} = CW$ti->prox_pointer; } else { CW$self->{_prox_count} = 0; } }

close

        $seg_term_pos->close;

next_position

        my $next = $seg_term_pos->next_position;

skipping_doc

        $seg_term_pos->skipping_doc;

read

This should not be called