Method NextSeekTerm
NextSeekTerm(BytesRef)
On the first call to Next() or if Accept(BytesRef) returns
YES_AND_SEEK or NO_AND_SEEK,
this method will be called to eventually seek the underlying TermsEnum
to a new position.
On the first call, currentTerm
will be null
, later
calls will provide the term the underlying enum is positioned at.
This method returns per default only one time the initial seek term
and then null
, so no repositioning is ever done.
Override this method, if you want a more sophisticated TermsEnum,
that repositions the iterator during enumeration.
If this method always returns null
the enum is empty.
Please note:
this method should always provide a greater term
than the last enumerated term, else the behavior of this enum
violates the contract for TermsEnums.
Declaration
protected virtual BytesRef NextSeekTerm(BytesRef currentTerm)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | currentTerm |
Returns
Type | Description |
---|---|
BytesRef |