public override BytesRef Next()
{
Debug.Assert(State == State_e.INITIAL || State == State_e.POSITIONED, "next() called on unpositioned TermsEnum");
BytesRef result = base.Next();
if (result == null)
{
State = State_e.UNPOSITIONED;
}
else
{
Debug.Assert(result.Valid);
State = State_e.POSITIONED;
}
return result;
}