public ParallelCompositeReader(boolean closeSubReaders,CompositeReader[] readers,CompositeReader[] storedFieldReaders) throws IOException {
  super(prepareLeafReaders(readers,storedFieldReaders));
  this.closeSubReaders=closeSubReaders;
  Collections.addAll(completeReaderSet,readers);
  Collections.addAll(completeReaderSet,storedFieldReaders);
  if (!closeSubReaders) {
    for (    final IndexReader reader : completeReaderSet) {
      reader.incRef();
    }
  }
  completeReaderSet.addAll(getSequentialSubReaders());
}

public ParallelCompositeReader ( boolean closeSubReaders , CompositeReader [ ] readers , CompositeReader [ ] storedFieldReaders ) throws IOException { super ( prepareLeafReaders ( readers , storedFieldReaders ) ) ; this . closeSubReaders = closeSubReaders ; Collections . addAll ( completeReaderSet , readers ) ; Collections . addAll ( completeReaderSet , storedFieldReaders ) ; if ( ! closeSubReaders ) { for ( final IndexReader reader : completeReaderSet ) { reader . incRef ( ) ; } } completeReaderSet . addAll ( getSequentialSubReaders ( ) ) ; }
expert : create a parallelcompositereader based on the provided readers and storedfieldreaders ; when a document is loaded , only storedfieldsreaders will be used .
