internal SepDocsEnum(SepPostingsReader outerInstance) { this.outerInstance = outerInstance; startDocIn = outerInstance.docIn; docReader = outerInstance.docIn.GetReader(); docIndex = outerInstance.docIn.GetIndex(); if (outerInstance.freqIn != null) { freqReader = outerInstance.freqIn.GetReader(); freqIndex = outerInstance.freqIn.GetIndex(); } else { freqReader = null; freqIndex = null; } if (outerInstance.posIn != null) { posIndex = outerInstance.posIn.GetIndex(); // only init this so skipper can read it } else { posIndex = null; } }
internal SepDocsAndPositionsEnum(SepPostingsReader outerInstance) { this.outerInstance = outerInstance; startDocIn = outerInstance.docIn; docReader = outerInstance.docIn.GetReader(); docIndex = outerInstance.docIn.GetIndex(); freqReader = outerInstance.freqIn.GetReader(); freqIndex = outerInstance.freqIn.GetIndex(); posReader = outerInstance.posIn.GetReader(); posIndex = outerInstance.posIn.GetIndex(); payloadIn = (IndexInput)outerInstance.payloadIn.Clone(); }