Package org.apache.lucene.util.fst
Class IntsRefFSTEnum<T>
- java.lang.Object
-
- org.apache.lucene.util.fst.IntsRefFSTEnum<T>
-
public final class IntsRefFSTEnum<T> extends java.lang.Object
Enumerates all input (IntsRef) + output pairs in an FST.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntsRefFSTEnum.InputOutput<T>
Holds a single input (IntsRef) + output pair.
-
Constructor Summary
Constructors Constructor Description IntsRefFSTEnum(FST<T> fst)
doFloor controls the behavior of advance: if it's true doFloor is true, advance positions to the biggest term before target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntsRefFSTEnum.InputOutput<T>
current()
IntsRefFSTEnum.InputOutput<T>
next()
IntsRefFSTEnum.InputOutput<T>
seekCeil(IntsRef target)
Seeks to smallest term that's >= target.IntsRefFSTEnum.InputOutput<T>
seekExact(IntsRef target)
Seeks to exactly this term, returning null if the term doesn't exist.IntsRefFSTEnum.InputOutput<T>
seekFloor(IntsRef target)
Seeks to biggest term that's <= target.
-
-
-
Method Detail
-
current
public IntsRefFSTEnum.InputOutput<T> current()
-
next
public IntsRefFSTEnum.InputOutput<T> next() throws java.io.IOException
- Throws:
java.io.IOException
-
seekCeil
public IntsRefFSTEnum.InputOutput<T> seekCeil(IntsRef target) throws java.io.IOException
Seeks to smallest term that's >= target.- Throws:
java.io.IOException
-
seekFloor
public IntsRefFSTEnum.InputOutput<T> seekFloor(IntsRef target) throws java.io.IOException
Seeks to biggest term that's <= target.- Throws:
java.io.IOException
-
seekExact
public IntsRefFSTEnum.InputOutput<T> seekExact(IntsRef target) throws java.io.IOException
Seeks to exactly this term, returning null if the term doesn't exist. This is faster than usingseekFloor(org.apache.lucene.util.IntsRef)
orseekCeil(org.apache.lucene.util.IntsRef)
because it short-circuits as soon the match is not found.- Throws:
java.io.IOException
-
-