예제 #1
0
            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;
                }
            }
예제 #2
0
            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();
            }