public final class IntsRefFSTEnum<T> extends FSTEnum<T>
Modifier and Type | Class and Description |
---|---|
static class |
IntsRefFSTEnum.InputOutput<T>
Holds a single input (IntsRef) + output pair.
|
Modifier and Type | Field and Description |
---|---|
private IntsRef |
current |
private IntsRefFSTEnum.InputOutput<T> |
result |
private IntsRef |
target |
arcs, fst, fstReader, NO_OUTPUT, output, scratchArc, targetLength, upto
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
IntsRefFSTEnum.InputOutput<T> |
current() |
protected int |
getCurrentLabel() |
protected int |
getTargetLabel() |
protected void |
grow() |
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.
|
protected void |
setCurrentLabel(int label) |
private IntsRefFSTEnum.InputOutput<T> |
setResult() |
doNext, doSeekCeil, doSeekExact, doSeekFloor, rewindPrefix
private final IntsRef current
private final IntsRefFSTEnum.InputOutput<T> result
private IntsRef target
public IntsRefFSTEnum.InputOutput<T> current()
public IntsRefFSTEnum.InputOutput<T> next() throws java.io.IOException
java.io.IOException
public IntsRefFSTEnum.InputOutput<T> seekCeil(IntsRef target) throws java.io.IOException
java.io.IOException
public IntsRefFSTEnum.InputOutput<T> seekFloor(IntsRef target) throws java.io.IOException
java.io.IOException
public IntsRefFSTEnum.InputOutput<T> seekExact(IntsRef target) throws java.io.IOException
seekFloor(org.apache.lucene.util.IntsRef)
or seekCeil(org.apache.lucene.util.IntsRef)
because it
short-circuits as soon the match is not found.java.io.IOException
protected int getTargetLabel()
getTargetLabel
in class FSTEnum<T>
protected int getCurrentLabel()
getCurrentLabel
in class FSTEnum<T>
protected void setCurrentLabel(int label)
setCurrentLabel
in class FSTEnum<T>
private IntsRefFSTEnum.InputOutput<T> setResult()