public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException {PostingsWriterBase postingsWriter = new Lucene84PostingsWriter(state);boolean success = false;try {FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsWriter);}}}
public override FieldsConsumer FieldsConsumer(SegmentWriteState state){PostingsWriterBase postingsWriter = new Lucene41PostingsWriter(state);bool success = false;try{FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsWriter);}}}