Package org.apache.lucene.tests.index
Class RandomPostingsTester.SeedPostings
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.PostingsEnum
org.apache.lucene.tests.index.RandomPostingsTester.SeedPostings
- Enclosing class:
RandomPostingsTester
Given the same random seed this always enumerates the same random postings
-
Field Summary
Fields inherited from class org.apache.lucene.index.PostingsEnum
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONS
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
Constructor Summary
ConstructorDescriptionSeedPostings
(long seed, int minDocFreq, int maxDocFreq, IndexOptions options, boolean allowPayloads) -
Method Summary
Methods inherited from class org.apache.lucene.index.PostingsEnum
featureRequested
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Field Details
-
docFreq
public int docFreq -
upto
public int upto
-
-
Constructor Details
-
SeedPostings
public SeedPostings(long seed, int minDocFreq, int maxDocFreq, IndexOptions options, boolean allowPayloads)
-
-
Method Details
-
nextDoc
public int nextDoc()- Specified by:
nextDoc
in classDocIdSetIterator
-
docID
public int docID()- Specified by:
docID
in classDocIdSetIterator
-
freq
public int freq()- Specified by:
freq
in classPostingsEnum
-
nextPosition
public int nextPosition()- Specified by:
nextPosition
in classPostingsEnum
-
startOffset
public int startOffset()- Specified by:
startOffset
in classPostingsEnum
-
endOffset
public int endOffset()- Specified by:
endOffset
in classPostingsEnum
-
getPayload
- Specified by:
getPayload
in classPostingsEnum
-
advance
- Specified by:
advance
in classDocIdSetIterator
- Throws:
IOException
-
cost
public long cost()- Specified by:
cost
in classDocIdSetIterator
-