Exemple #1
0
 public SegmentDocsAndPositionsEnum(Lucene40PostingsReader outerInstance, IndexInput freqIn, IndexInput proxIn)
 {
     this.outerInstance = outerInstance;
     startFreqIn        = freqIn;
     this.freqIn        = (IndexInput)freqIn.Clone();
     this.proxIn        = (IndexInput)proxIn.Clone();
 }
Exemple #2
0
 internal SegmentDocsEnumBase(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
 {
     this.outerInstance = outerInstance;
     this.startFreqIn   = startFreqIn;
     this.freqIn        = (IndexInput)startFreqIn.Clone();
     this.m_liveDocs    = liveDocs;
 }
Exemple #3
0
 internal LiveDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
     : base(outerInstance, startFreqIn, liveDocs)
 {
     if (Debugging.AssertsEnabled)
     {
         Debugging.Assert(liveDocs != null);
     }
 }
Exemple #4
0
 internal AllDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn)
     : base(outerInstance, startFreqIn, null)
 {
     if (Debugging.AssertsEnabled)
     {
         Debugging.Assert(m_liveDocs == null);
     }
 }
        public override FieldsProducer FieldsProducer(SegmentReadState state)
        {
            PostingsReaderBase postings = new Lucene40PostingsReader(state.Directory, state.FieldInfos, state.SegmentInfo, state.Context, state.SegmentSuffix);

            bool success = false;

            try
            {
                FieldsProducer ret = new BlockTreeTermsReader(state.Directory, state.FieldInfos, state.SegmentInfo, postings, state.Context, state.SegmentSuffix, state.TermsIndexDivisor);
                success = true;
                return(ret);
            }
            finally
            {
                if (!success)
                {
                    postings.Dispose();
                }
            }
        }
Exemple #6
0
 internal LiveDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
     : base(outerInstance, startFreqIn, liveDocs)
 {
     this.outerInstance = outerInstance;
     Debug.Assert(liveDocs != null);
 }
Exemple #7
0
 internal AllDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn)
     : base(outerInstance, startFreqIn, null)
 {
     this.outerInstance = outerInstance;
     Debug.Assert(m_liveDocs == null);
 }