Class InstantiatedTermDocs
- java.lang.Object
-
- org.apache.lucene.store.instantiated.InstantiatedTermDocs
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.index.TermDocs
- Direct Known Subclasses:
InstantiatedTermPositions
public class InstantiatedTermDocs extends Object implements org.apache.lucene.index.TermDocs
ATermDocs
navigating anInstantiatedIndexReader
.
-
-
Field Summary
Fields Modifier and Type Field Description protected InstantiatedTermDocumentInformation
currentDocumentInformation
protected InstantiatedTerm
currentTerm
-
Constructor Summary
Constructors Constructor Description InstantiatedTermDocs(InstantiatedIndexReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Does nothingint
doc()
int
freq()
boolean
next()
int
read(int[] docs, int[] freqs)
void
seek(org.apache.lucene.index.Term term)
void
seek(org.apache.lucene.index.TermEnum termEnum)
boolean
skipTo(int target)
Skips entries to the first beyond the current whose document number is greater than or equal to target.
-
-
-
Field Detail
-
currentDocumentInformation
protected InstantiatedTermDocumentInformation currentDocumentInformation
-
currentTerm
protected InstantiatedTerm currentTerm
-
-
Constructor Detail
-
InstantiatedTermDocs
public InstantiatedTermDocs(InstantiatedIndexReader reader)
-
-
Method Detail
-
seek
public void seek(org.apache.lucene.index.Term term)
- Specified by:
seek
in interfaceorg.apache.lucene.index.TermDocs
-
seek
public void seek(org.apache.lucene.index.TermEnum termEnum)
- Specified by:
seek
in interfaceorg.apache.lucene.index.TermDocs
-
doc
public int doc()
- Specified by:
doc
in interfaceorg.apache.lucene.index.TermDocs
-
freq
public int freq()
- Specified by:
freq
in interfaceorg.apache.lucene.index.TermDocs
-
next
public boolean next()
- Specified by:
next
in interfaceorg.apache.lucene.index.TermDocs
-
read
public int read(int[] docs, int[] freqs)
- Specified by:
read
in interfaceorg.apache.lucene.index.TermDocs
-
skipTo
public boolean skipTo(int target)
Skips entries to the first beyond the current whose document number is greater than or equal to target.Returns true if there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }
This implementation is considerably more efficient than that.- Specified by:
skipTo
in interfaceorg.apache.lucene.index.TermDocs
-
close
public void close()
Does nothing- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.lucene.index.TermDocs
-
-