Package org.apache.lucene.tests.index
Class AssertingLeafReader.AssertingSortedDocValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.SortedDocValues
-
- org.apache.lucene.tests.index.AssertingLeafReader.AssertingSortedDocValues
-
- Enclosing class:
- AssertingLeafReader
public static class AssertingLeafReader.AssertingSortedDocValues extends SortedDocValues
Wraps a SortedDocValues but with additional asserts
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Constructor Description AssertingSortedDocValues(SortedDocValues in, int maxDoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvance(int target)booleanadvanceExact(int target)longcost()intdocID()intgetValueCount()BytesReflookupOrd(int ord)intlookupTerm(BytesRef key)intnextDoc()intordValue()-
Methods inherited from class org.apache.lucene.index.SortedDocValues
intersect, termsEnum
-
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
-
-
-
Constructor Detail
-
AssertingSortedDocValues
public AssertingSortedDocValues(SortedDocValues in, int maxDoc)
-
-
Method Detail
-
docID
public int docID()
- Specified by:
docIDin classDocIdSetIterator
-
nextDoc
public int nextDoc() throws IOException- Specified by:
nextDocin classDocIdSetIterator- Throws:
IOException
-
advance
public int advance(int target) throws IOException- Specified by:
advancein classDocIdSetIterator- Throws:
IOException
-
advanceExact
public boolean advanceExact(int target) throws IOException- Throws:
IOException
-
cost
public long cost()
- Specified by:
costin classDocIdSetIterator
-
ordValue
public int ordValue() throws IOException- Specified by:
ordValuein classSortedDocValues- Throws:
IOException
-
lookupOrd
public BytesRef lookupOrd(int ord) throws IOException
- Specified by:
lookupOrdin classSortedDocValues- Throws:
IOException
-
getValueCount
public int getValueCount()
- Specified by:
getValueCountin classSortedDocValues
-
lookupTerm
public int lookupTerm(BytesRef key) throws IOException
- Overrides:
lookupTermin classSortedDocValues- Throws:
IOException
-
-