public final class BytesRefFSTEnum<T> extends FSTEnum<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
BytesRefFSTEnum.InputOutput<T>
Holds a single input (BytesRef) + output pair.
|
| Modifier and Type | Field and Description |
|---|---|
private BytesRef |
current |
private BytesRefFSTEnum.InputOutput<T> |
result |
private BytesRef |
target |
arcs, fst, fstReader, NO_OUTPUT, output, scratchArc, targetLength, upto| Constructor and Description |
|---|
BytesRefFSTEnum(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 |
|---|---|
BytesRefFSTEnum.InputOutput<T> |
current() |
protected int |
getCurrentLabel() |
protected int |
getTargetLabel() |
protected void |
grow() |
BytesRefFSTEnum.InputOutput<T> |
next() |
BytesRefFSTEnum.InputOutput<T> |
seekCeil(BytesRef target)
Seeks to smallest term that's >= target.
|
BytesRefFSTEnum.InputOutput<T> |
seekExact(BytesRef target)
Seeks to exactly this term, returning null if the term
doesn't exist.
|
BytesRefFSTEnum.InputOutput<T> |
seekFloor(BytesRef target)
Seeks to biggest term that's <= target.
|
protected void |
setCurrentLabel(int label) |
private BytesRefFSTEnum.InputOutput<T> |
setResult() |
doNext, doSeekCeil, doSeekExact, doSeekFloorprivate final BytesRef current
private final BytesRefFSTEnum.InputOutput<T> result
private BytesRef target
public BytesRefFSTEnum.InputOutput<T> current()
public BytesRefFSTEnum.InputOutput<T> next() throws java.io.IOException
java.io.IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekCeil(BytesRef target) throws java.io.IOException
java.io.IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekFloor(BytesRef target) throws java.io.IOException
java.io.IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekExact(BytesRef target) throws java.io.IOException
seekFloor(org.apache.lucene.util.BytesRef) or seekCeil(org.apache.lucene.util.BytesRef) because it
short-circuits as soon the match is not found.java.io.IOExceptionprotected 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 BytesRefFSTEnum.InputOutput<T> setResult()