public static interface DocumentFactory.TokenIterator extends IntIterator
This kind of iterator is returned by a
DocumentFactory.FieldType.TOKEN field. The
returns positions in the documents, and after a call
token() returns the token to be indexed at the last
Note that by contract the iterator must be monotonically nondecreasing, but it might return several time the same position. This is very useful if you want to index several tokens at the same position.
|Modifier and Type||Method and Description|
Returns the token to be indexed after a call to
MutableString returned by this method can be modified by the caller; moreover,
the same instance might be returned at each invocation.