Module org.apache.lucene.codecs
Class VariableGapTermsIndexReader.IndexEnum
- java.lang.Object
-
- org.apache.lucene.codecs.blockterms.TermsIndexReaderBase.FieldIndexEnum
-
- org.apache.lucene.codecs.blockterms.VariableGapTermsIndexReader.IndexEnum
-
- Enclosing class:
- VariableGapTermsIndexReader
private static class VariableGapTermsIndexReader.IndexEnum extends TermsIndexReaderBase.FieldIndexEnum
-
-
Field Summary
Fields Modifier and Type Field Description private BytesRefFSTEnum.InputOutput<java.lang.Long>
current
private BytesRefFSTEnum<java.lang.Long>
fstEnum
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
next()
Returns -1 at endlong
ord()
Only implemented ifTermsIndexReaderBase.supportsOrd()
returns true.long
seek(long ord)
Only implemented ifTermsIndexReaderBase.supportsOrd()
returns true.long
seek(BytesRef target)
Seeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that termBytesRef
term()
-
-
-
Field Detail
-
fstEnum
private final BytesRefFSTEnum<java.lang.Long> fstEnum
-
current
private BytesRefFSTEnum.InputOutput<java.lang.Long> current
-
-
Constructor Detail
-
IndexEnum
public IndexEnum(FST<java.lang.Long> fst)
-
-
Method Detail
-
term
public BytesRef term()
- Specified by:
term
in classTermsIndexReaderBase.FieldIndexEnum
-
seek
public long seek(BytesRef target) throws java.io.IOException
Description copied from class:TermsIndexReaderBase.FieldIndexEnum
Seeks to "largest" indexed term that's <= term; returns file pointer index (into the main terms index file) for that term- Specified by:
seek
in classTermsIndexReaderBase.FieldIndexEnum
- Throws:
java.io.IOException
-
next
public long next() throws java.io.IOException
Description copied from class:TermsIndexReaderBase.FieldIndexEnum
Returns -1 at end- Specified by:
next
in classTermsIndexReaderBase.FieldIndexEnum
- Throws:
java.io.IOException
-
ord
public long ord()
Description copied from class:TermsIndexReaderBase.FieldIndexEnum
Only implemented ifTermsIndexReaderBase.supportsOrd()
returns true.- Specified by:
ord
in classTermsIndexReaderBase.FieldIndexEnum
-
seek
public long seek(long ord)
Description copied from class:TermsIndexReaderBase.FieldIndexEnum
Only implemented ifTermsIndexReaderBase.supportsOrd()
returns true.- Specified by:
seek
in classTermsIndexReaderBase.FieldIndexEnum
-
-