public override TermsEnum GetEnumerator()
            {
                var termsEnum = new TVTermsEnum(outerInstance);

                termsEnum.Reset(numTerms, tvfFPStart, storePositions, storeOffsets, unicodeSortOrder);
                return(termsEnum);
            }
Exemple #2
0
            public override TermsEnum GetEnumerator()
            {
                var termsEnum = new TVTermsEnum();

                termsEnum.Reset(numTerms, flags, prefixLengths, suffixLengths, termFreqs, positionIndex, positions, startOffsets, lengths, payloadIndex, payloadBytes, new ByteArrayDataInput(termBytes.Bytes, termBytes.Offset, termBytes.Length));
                return(termsEnum);
            }
Exemple #3
0
            public override TermsEnum GetEnumerator(TermsEnum reuse)
            {
                if (reuse is null || !(reuse is TVTermsEnum termsEnum) || !termsEnum.CanReuse(outerInstance.tvf))
                    termsEnum = new TVTermsEnum(outerInstance);

                termsEnum.Reset(numTerms, tvfFPStart, storePositions, storeOffsets, storePayloads);
                return termsEnum;
            }
            public override TermsEnum GetEnumerator(TermsEnum reuse)
            {
                if (reuse is null || !(reuse is TVTermsEnum termsEnum) || !termsEnum.CanReuse(outerInstance.tvf))
                {
                    termsEnum = new TVTermsEnum(outerInstance);
                }

                termsEnum.Reset(numTerms, tvfFPStart, storePositions, storeOffsets, unicodeSortOrder);
                return(termsEnum);
            }
Exemple #5
0
 public override TermsEnum GetEnumerator()
 {
     var termsEnum = new TVTermsEnum(outerInstance);
     termsEnum.Reset(numTerms, tvfFPStart, storePositions, storeOffsets, storePayloads);
     return termsEnum;
 }