|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BytesRefSorter
Collects BytesRef and then allows one to iterate over their sorted order. Implementations
of this interface will be called in a single-threaded scenario.
| Method Summary | |
|---|---|
void |
add(BytesRef utf8)
Adds a single suggestion entry (possibly compound with its bucket). |
Comparator<BytesRef> |
getComparator()
|
BytesRefIterator |
iterator()
Sorts the entries added in add(BytesRef) and returns
an iterator over all sorted entries. |
| Method Detail |
|---|
void add(BytesRef utf8)
throws IOException,
IllegalStateException
IOException - If an I/O exception occurs.
IllegalStateException - If an addition attempt is performed after
a call to iterator() has been made.
BytesRefIterator iterator()
throws IOException
add(BytesRef) and returns
an iterator over all sorted entries.
IOException - If an I/O exception occurs.Comparator<BytesRef> getComparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||