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

Set() public method

public Set ( Term term ) : void
term Term
return void
        public void Set(Term term)
        {
            if (term == null)
            {
                Reset();
                return;
            }
            Bytes.CopyBytes(term.Bytes());
            Field = String.Intern(term.Field());
            CurrentFieldNumber = -1;
            this.Term = term;
        }

Same methods

TermBuffer::Set ( TermBuffer other ) : void

Usage Example

示例#1
0
        /// <summary>
        /// Increments the enumeration to the next element.  True if one exists. </summary>
        public bool Next()
        {
            prevBuffer.Set(termBuffer);
            //System.out.println("  ste setPrev=" + prev() + " this=" + this);

            if (position++ >= size - 1)
            {
                termBuffer.Reset();
                //System.out.println("    EOF");
                return(false);
            }

            termBuffer.Read(input, fieldInfos);
            newSuffixStart = termBuffer.newSuffixStart;

            termInfo.DocFreq      = input.ReadVInt32(); // read doc freq
            termInfo.FreqPointer += input.ReadVInt64(); // read freq pointer
            termInfo.ProxPointer += input.ReadVInt64(); // read prox pointer

            if (termInfo.DocFreq >= skipInterval)
            {
                termInfo.SkipOffset = input.ReadVInt32();
            }

            if (isIndex)
            {
                indexPointer += input.ReadVInt64(); // read index pointer
            }

            //System.out.println("  ste ret term=" + term());
            return(true);
        }
All Usage Examples Of Lucene.Net.Codecs.Lucene3x.TermBuffer::Set