gate.creole.annic.apache.lucene.index
Class SegmentTermEnum

java.lang.Object
  extended by gate.creole.annic.apache.lucene.index.TermEnum
      extended by gate.creole.annic.apache.lucene.index.SegmentTermEnum
All Implemented Interfaces:
Cloneable

final class SegmentTermEnum
extends TermEnum
implements Cloneable


Field Summary
private  char[] buffer
           
(package private)  FieldInfos fieldInfos
           
private  int format
           
private  int formatM1SkipInterval
           
(package private)  int indexInterval
           
(package private)  long indexPointer
           
private  InputStream input
           
private  boolean isIndex
           
(package private)  long position
           
(package private)  Term prev
           
(package private)  long size
           
(package private)  int skipInterval
           
private  Term term
           
private  TermInfo termInfo
           
 
Constructor Summary
SegmentTermEnum(InputStream i, FieldInfos fis, boolean isi)
           
 
Method Summary
protected  Object clone()
           
 void close()
          Closes the enumeration to further activity, freeing resources.
 int docFreq()
          Returns the docFreq from the current TermInfo in the enumeration.
(package private)  long freqPointer()
           
private  void growBuffer(int length)
           
 boolean next()
          Increments the enumeration to the next element.
(package private)  long proxPointer()
           
private  Term readTerm()
           
(package private)  void seek(long pointer, int p, Term t, TermInfo ti)
           
 Term term()
          Returns the current Term in the enumeration.
(package private)  TermInfo termInfo()
          Returns the current TermInfo in the enumeration.
(package private)  void termInfo(TermInfo ti)
          Sets the argument to the current TermInfo in the enumeration.
 
Methods inherited from class gate.creole.annic.apache.lucene.index.TermEnum
skipTo
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

private InputStream input

fieldInfos

FieldInfos fieldInfos

size

long size

position

long position

term

private Term term

termInfo

private TermInfo termInfo

format

private int format

isIndex

private boolean isIndex

indexPointer

long indexPointer

indexInterval

int indexInterval

skipInterval

int skipInterval

formatM1SkipInterval

private int formatM1SkipInterval

prev

Term prev

buffer

private char[] buffer
Constructor Detail

SegmentTermEnum

SegmentTermEnum(InputStream i,
                FieldInfos fis,
                boolean isi)
          throws IOException
Throws:
IOException
Method Detail

clone

protected Object clone()
Overrides:
clone in class Object

seek

final void seek(long pointer,
                int p,
                Term t,
                TermInfo ti)
         throws IOException
Throws:
IOException

next

public final boolean next()
                   throws IOException
Increments the enumeration to the next element. True if one exists.

Specified by:
next in class TermEnum
Throws:
IOException

readTerm

private final Term readTerm()
                     throws IOException
Throws:
IOException

growBuffer

private final void growBuffer(int length)

term

public final Term term()
Returns the current Term in the enumeration. Initially invalid, valid after next() called for the first time.

Specified by:
term in class TermEnum

termInfo

final TermInfo termInfo()
Returns the current TermInfo in the enumeration. Initially invalid, valid after next() called for the first time.


termInfo

final void termInfo(TermInfo ti)
Sets the argument to the current TermInfo in the enumeration. Initially invalid, valid after next() called for the first time.


docFreq

public final int docFreq()
Returns the docFreq from the current TermInfo in the enumeration. Initially invalid, valid after next() called for the first time.

Specified by:
docFreq in class TermEnum

freqPointer

final long freqPointer()

proxPointer

final long proxPointer()

close

public final void close()
                 throws IOException
Closes the enumeration to further activity, freeing resources.

Specified by:
close in class TermEnum
Throws:
IOException