Class StoredFieldsWriter.MergeVisitor

java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.codecs.StoredFieldsWriter.MergeVisitor
All Implemented Interfaces:
IndexableField
Enclosing class:
StoredFieldsWriter

protected class StoredFieldsWriter.MergeVisitor extends StoredFieldVisitor implements IndexableField
A visitor that adds every field it sees.

Use like this:

 MergeVisitor visitor = new MergeVisitor(mergeState, readerIndex);
 for (...) {
   startDocument();
   storedFieldsReader.visitDocument(docID, visitor);
   finishDocument();
 }