예제 #1
0
            public override DocsEnum Docs(IBits liveDocs, DocsEnum reuse, DocsFlags flags)
            {
                if (reuse == null || !(reuse is PreDocsEnum docsEnum) || docsEnum.FreqStream != outerInstance.FreqStream)
                {
                    docsEnum = new PreDocsEnum(outerInstance);
                }

                return(docsEnum.Reset(termEnum, liveDocs));
            }
예제 #2
0
            public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags)
            {
                PreDocsEnum docsEnum;

                if (reuse == null || !(reuse is PreDocsEnum))
                {
                    docsEnum = new PreDocsEnum(OuterInstance);
                }
                else
                {
                    docsEnum = (PreDocsEnum)reuse;
                    if (docsEnum.FreqStream != OuterInstance.FreqStream)
                    {
                        docsEnum = new PreDocsEnum(OuterInstance);
                    }
                }
                return(docsEnum.Reset(TermEnum, liveDocs));
            }
예제 #3
0
 public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags)
 {
     PreDocsEnum docsEnum;
     if (reuse == null || !(reuse is PreDocsEnum))
     {
         docsEnum = new PreDocsEnum(OuterInstance);
     }
     else
     {
         docsEnum = (PreDocsEnum)reuse;
         if (docsEnum.FreqStream != OuterInstance.FreqStream)
         {
             docsEnum = new PreDocsEnum(OuterInstance);
         }
     }
     return docsEnum.Reset(TermEnum, liveDocs);
 }