public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { if (reuse == null || !(reuse is MemoryDocsEnum)) { reuse = new MemoryDocsEnum(outerInstance); } return(((MemoryDocsEnum)reuse).Reset(liveDocs, info.sliceArray.freq[info.sortedTerms[termUpto]])); }
public override DocsEnum Docs(IBits liveDocs, DocsEnum reuse, DocsFlags flags) { if (reuse is null || !(reuse is MemoryDocsEnum toReuse)) { toReuse = new MemoryDocsEnum(); } return(toReuse.Reset(liveDocs, info.sliceArray.freq[info.sortedTerms[termUpto]])); }