Lucene.Net.Codecs.Lucene3x.TermBuffer.ToTerm C# (CSharp) Method

ToTerm() public method

public ToTerm ( ) : Term
return Term
        public Term ToTerm()
        {
            if (Field == null) // unset
            {
                return null;
            }

            return Term ?? (Term = new Term(Field, BytesRef.DeepCopyOf(Bytes)));
        }

Usage Example

Example #1
0
 /// <summary>
 /// Returns the previous Term enumerated. Initially <c>null</c>. </summary>
 internal Term Prev()
 {
     return(prevBuffer.ToTerm());
 }
All Usage Examples Of Lucene.Net.Codecs.Lucene3x.TermBuffer::ToTerm