|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.fst.BytesRefFSTEnum<T>
public final class BytesRefFSTEnum<T>
Can next() and advance() through the terms in an FST
Nested Class Summary | |
---|---|
static class |
BytesRefFSTEnum.InputOutput<T>
|
Field Summary | |
---|---|
protected FST.Arc<T>[] |
arcs
|
protected FST<T> |
fst
|
protected T |
NO_OUTPUT
|
protected T[] |
output
|
protected FST.Arc<T> |
scratchArc
|
protected int |
targetLength
|
protected int |
upto
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
BytesRefFSTEnum.InputOutput<T> |
current()
|
protected void |
doNext()
|
protected void |
doSeekCeil()
Seeks to smallest term that's >= target. |
protected void |
doSeekFloor()
Seeks to largest term that's <= target. |
protected int |
getCurrentLabel()
|
protected int |
getTargetLabel()
|
protected void |
grow()
|
BytesRefFSTEnum.InputOutput<T> |
next()
|
protected void |
rewindPrefix()
Rewinds enum state to match the shared prefix between current term and target term |
BytesRefFSTEnum.InputOutput<T> |
seekCeil(BytesRef target)
Seeks to smallest term that's >= target. |
BytesRefFSTEnum.InputOutput<T> |
seekFloor(BytesRef target)
Seeks to biggest term that's <= target. |
protected void |
setCurrentLabel(int label)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final FST<T> fst
protected FST.Arc<T>[] arcs
protected T[] output
protected final T NO_OUTPUT
protected final FST.Arc<T> scratchArc
protected int upto
protected int targetLength
Constructor Detail |
---|
public BytesRefFSTEnum(FST<T> fst)
Method Detail |
---|
public BytesRefFSTEnum.InputOutput<T> current()
public BytesRefFSTEnum.InputOutput<T> next() throws IOException
IOException
public BytesRefFSTEnum.InputOutput<T> seekCeil(BytesRef target) throws IOException
IOException
public BytesRefFSTEnum.InputOutput<T> seekFloor(BytesRef target) throws IOException
IOException
protected int getTargetLabel()
protected int getCurrentLabel()
protected void setCurrentLabel(int label)
protected void grow()
protected final void rewindPrefix() throws IOException
IOException
protected void doNext() throws IOException
IOException
protected void doSeekCeil() throws IOException
IOException
protected void doSeekFloor() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |