Package org.apache.lucene.tests.index
Class AssertingLeafReader.AssertingTerms
- java.lang.Object
-
- org.apache.lucene.index.Terms
-
- org.apache.lucene.index.FilterLeafReader.FilterTerms
-
- org.apache.lucene.tests.index.AssertingLeafReader.AssertingTerms
-
- Enclosing class:
- AssertingLeafReader
public static class AssertingLeafReader.AssertingTerms extends FilterLeafReader.FilterTerms
Wraps a Terms but with additional asserts
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
in
-
Fields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description AssertingTerms(Terms in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDocCount()BytesRefgetMax()BytesRefgetMin()longgetSumDocFreq()longgetSumTotalTermFreq()TermsEnumintersect(CompiledAutomaton automaton, BytesRef bytes)TermsEnumiterator()StringtoString()-
Methods inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
getStats, hasFreqs, hasOffsets, hasPayloads, hasPositions, size
-
-
-
-
Constructor Detail
-
AssertingTerms
public AssertingTerms(Terms in)
-
-
Method Detail
-
intersect
public TermsEnum intersect(CompiledAutomaton automaton, BytesRef bytes) throws IOException
- Overrides:
intersectin classTerms- Throws:
IOException
-
getMin
public BytesRef getMin() throws IOException
- Overrides:
getMinin classTerms- Throws:
IOException
-
getMax
public BytesRef getMax() throws IOException
- Overrides:
getMaxin classTerms- Throws:
IOException
-
getDocCount
public int getDocCount() throws IOException- Overrides:
getDocCountin classFilterLeafReader.FilterTerms- Throws:
IOException
-
getSumDocFreq
public long getSumDocFreq() throws IOException- Overrides:
getSumDocFreqin classFilterLeafReader.FilterTerms- Throws:
IOException
-
getSumTotalTermFreq
public long getSumTotalTermFreq() throws IOException- Overrides:
getSumTotalTermFreqin classFilterLeafReader.FilterTerms- Throws:
IOException
-
iterator
public TermsEnum iterator() throws IOException
- Overrides:
iteratorin classFilterLeafReader.FilterTerms- Throws:
IOException
-
-