public override FieldsConsumer FieldsConsumer(SegmentWriteState state) { PostingsWriterBase docsWriter = null; PostingsWriterBase pulsingWriter = null; bool success = false; try { docsWriter = _wrappedPostingsBaseFormat.PostingsWriterBase(state); pulsingWriter = new PulsingPostingsWriter(state, _freqCutoff, docsWriter); FieldsConsumer ret = new FSTOrdTermsWriter(state, pulsingWriter); success = true; return ret; } finally { if (!success) { IOUtils.CloseWhileHandlingException(docsWriter, pulsingWriter); } } }
public override FieldsConsumer FieldsConsumer(SegmentWriteState state) { PostingsWriterBase docsWriter = null; PostingsWriterBase pulsingWriter = null; bool success = false; try { docsWriter = _wrappedPostingsBaseFormat.PostingsWriterBase(state); pulsingWriter = new PulsingPostingsWriter(state, _freqCutoff, docsWriter); FieldsConsumer ret = new FSTOrdTermsWriter(state, pulsingWriter); success = true; return(ret); } finally { if (!success) { IOUtils.CloseWhileHandlingException(docsWriter, pulsingWriter); } } }