public final class BytesRefFSTEnum<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BytesRefFSTEnum.InputOutput<T>
Holds a single input (BytesRef) + output pair.
|
| 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() |
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.
|
public BytesRefFSTEnum.InputOutput<T> current()
public BytesRefFSTEnum.InputOutput<T> next() throws IOException
IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekCeil(BytesRef target) throws IOException
IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekFloor(BytesRef target) throws IOException
IOExceptionpublic BytesRefFSTEnum.InputOutput<T> seekExact(BytesRef target) throws 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.IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved