|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.index.TermInfosReader
final class TermInfosReader
This stores a monotonically increasing set of
Field Summary
private Directorydirectory
private ThreadLocalenumerators
private FieldInfosfieldInfos
(package private) TermInfo[]indexInfos
(package private) long[]indexPointers
(package private) Term[]indexTerms
private SegmentTermEnumorigEnum
private Stringsegment
private longsize
Constructor Summary
TermInfosReader(Directory dir,
String seg,
FieldInfos fis)
Method Summary
(package private) voidclose()
(package private) Termget(int position)
Returns the nth term in the set.
(package private) TermInfoget(Term term)
Returns the TermInfo for a Term in the set, or null.
private SegmentTermEnumgetEnum()
private intgetIndexOffset(Term term)
Returns the offset of the greatest index entry which is less than or equal to term.
(package private) longgetPosition(Term term)
Returns the position of a Term in the set or -1.
intgetSkipInterval()
private voidreadIndex()
private TermscanEnum(int position)
private TermInfoscanEnum(Term term)
Scans within block for matching term.
private voidseekEnum(int indexOffset)
(package private) longsize()
Returns the number of term/value pairs in the set.
SegmentTermEnumterms()
Returns an enumeration of all the Terms and TermInfos in the set.
SegmentTermEnumterms(Term term)
Returns an enumeration of terms starting at or after the named term.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
directory
private Directory directory
segment
private String segment
fieldInfos
private FieldInfos fieldInfos
enumerators
private ThreadLocal enumerators
origEnum
private SegmentTermEnum origEnum
size
private long size
indexTerms
Term[] indexTerms
indexInfos
TermInfo[] indexInfos
indexPointers
long[] indexPointers
Constructor Detail
TermInfosReader
TermInfosReader(Directory dir,
String seg,
FieldInfos fis)
throws IOException
IOException
Method Detail
getSkipInterval
public int getSkipInterval()
close
final void close()
throws IOException
IOException
size
final long size()
getEnum
private SegmentTermEnum getEnum()
readIndex
private final void readIndex()
throws IOException
IOException
getIndexOffset
private final int getIndexOffset(Term term)
throws IOException
IOException
seekEnum
private final void seekEnum(int indexOffset)
throws IOException
IOException
get
TermInfo get(Term term)
throws IOException
IOException
scanEnum
private final TermInfo scanEnum(Term term)
throws IOException
IOException
get
final Term get(int position)
throws IOException
IOException
scanEnum
private final Term scanEnum(int position)
throws IOException
IOException
getPosition
final long getPosition(Term term)
throws IOException
IOException
terms
public SegmentTermEnum terms()
terms
public SegmentTermEnum terms(Term term)
throws IOException
IOException
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD