public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { // TODO: reuse var e = new SimpleTVDocsEnum(); e.Reset(liveDocs, (flags & DocsEnum.FLAG_FREQS) == 0 ? 1 : _current.Value.FREQ); return(e); }
public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { SimpleTextDocsEnum docsEnum; if (reuse != null && reuse is SimpleTextDocsEnum && ((SimpleTextDocsEnum)reuse).CanReuse(_outerInstance._input)) { docsEnum = (SimpleTextDocsEnum)reuse; } else { docsEnum = new SimpleTextDocsEnum(_outerInstance); } return(docsEnum.Reset(_docsStart, liveDocs, _indexOptions == IndexOptions.DOCS_ONLY, _docFreq)); }
public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { SimpleTextDocsEnum docsEnum; if (reuse is SimpleTextDocsEnum && ((SimpleTextDocsEnum) reuse).CanReuse(_outerInstance._input)) { docsEnum = (SimpleTextDocsEnum) reuse; } else { docsEnum = new SimpleTextDocsEnum(_outerInstance); } return docsEnum.Reset(_docsStart, liveDocs, _indexOptions == IndexOptions.DOCS_ONLY, _docFreq); }
public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { DecodeMetaData(); return(outerInstance.outerInstance.postingsReader.Docs(outerInstance.fieldInfo, state, liveDocs, reuse, flags)); }
public override DocsEnum Docs(Bits liveDocs, DocsEnum reuse, int flags) { // TODO: reuse var e = new SimpleTVDocsEnum(); e.Reset(liveDocs, (flags & DocsEnum.FLAG_FREQS) == 0 ? 1 : _current.Value.FREQ); return e; }
public override DocsEnum docs(Bits liveDocs, DocsEnum reuse, int flags) { // TODO: implement reuse, something like Pulsing: // it's hairy! if (outerInstance.terms[termOrd] is LowFreqTerm) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final int[] postings = ((LowFreqTerm) terms[termOrd]).postings; int[] postings = ((LowFreqTerm) outerInstance.terms[termOrd]).postings; if (outerInstance.hasFreq) { if (outerInstance.hasPos) { int posLen; if (outerInstance.hasOffsets_Renamed) { posLen = 3; } else { posLen = 1; } if (outerInstance.hasPayloads_Renamed) { posLen++; } return (new LowFreqDocsEnum(liveDocs, posLen)).reset(postings); } else { return (new LowFreqDocsEnumNoPos(liveDocs)).reset(postings); } } else { return (new LowFreqDocsEnumNoTF(liveDocs)).reset(postings); } } else { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final HighFreqTerm term = (HighFreqTerm) terms[termOrd]; HighFreqTerm term = (HighFreqTerm) outerInstance.terms[termOrd]; // System.out.println("DE for term=" + new BytesRef(terms[termOrd].term).utf8ToString() + ": " + term.docIDs.length + " docs"); return (new HighFreqDocsEnum(liveDocs)).reset(term.docIDs, term.freqs); } }