public final class IntsRefFSTEnum<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IntsRefFSTEnum.InputOutput<T>
Holds a single input (IntsRef) + output pair.
|
Modifier and Type | Field and Description |
---|---|
protected FST.Arc<T>[] |
arcs |
protected FST<T> |
fst |
protected FST.BytesReader |
fstReader |
protected T |
NO_OUTPUT |
protected T[] |
output |
protected FST.Arc<T> |
scratchArc |
protected int |
targetLength |
protected int |
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 void |
doNext() |
protected void |
doSeekCeil()
Seeks to smallest term that's >= target.
|
protected boolean |
doSeekExact()
Seeks to exactly target term.
|
protected void |
doSeekFloor()
Seeks to largest term that's <= target.
|
protected int |
getCurrentLabel() |
protected int |
getTargetLabel() |
protected void |
grow() |
IntsRefFSTEnum.InputOutput<T> |
next() |
protected void |
rewindPrefix()
Rewinds enum state to match the shared prefix between
current term and target term
|
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) |
protected final FST<T> fst
protected FST.Arc<T>[] arcs
protected T[] output
protected final T NO_OUTPUT
protected final FST.BytesReader fstReader
protected final FST.Arc<T> scratchArc
protected int upto
protected int targetLength
public IntsRefFSTEnum.InputOutput<T> current()
public IntsRefFSTEnum.InputOutput<T> next() throws IOException
IOException
public IntsRefFSTEnum.InputOutput<T> seekCeil(IntsRef target) throws IOException
IOException
public IntsRefFSTEnum.InputOutput<T> seekFloor(IntsRef target) throws IOException
IOException
public IntsRefFSTEnum.InputOutput<T> seekExact(IntsRef target) throws 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.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
protected boolean doSeekExact() throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.