Пример #1
0
 internal SegmentDocsEnumBase(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
 {
     this.outerInstance = outerInstance;
     this.startFreqIn   = startFreqIn;
     this.freqIn        = (IndexInput)startFreqIn.Clone();
     this.m_liveDocs    = liveDocs;
 }
Пример #2
0
 public SegmentDocsAndPositionsEnum(Lucene40PostingsReader outerInstance, IndexInput freqIn, IndexInput proxIn)
 {
     this.outerInstance = outerInstance;
     startFreqIn        = freqIn;
     this.freqIn        = (IndexInput)freqIn.Clone();
     this.proxIn        = (IndexInput)proxIn.Clone();
 }
Пример #3
0
 public SegmentFullPositionsEnum(Lucene40PostingsReader outerInstance, IndexInput freqIn, IndexInput proxIn)
 {
     this.OuterInstance = outerInstance;
     StartFreqIn        = freqIn;
     this.FreqIn        = (IndexInput)freqIn.Clone();
     this.ProxIn        = (IndexInput)proxIn.Clone();
 }
Пример #4
0
 internal LiveDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
     : base(outerInstance, startFreqIn, liveDocs)
 {
     if (Debugging.AssertsEnabled)
     {
         Debugging.Assert(liveDocs != null);
     }
 }
Пример #5
0
 internal AllDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn)
     : base(outerInstance, startFreqIn, null)
 {
     if (Debugging.AssertsEnabled)
     {
         Debugging.Assert(m_liveDocs == null);
     }
 }
Пример #6
0
        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();
                }
            }
        }
Пример #7
0
        public override FieldsProducer FieldsProducer(SegmentReadState state)
        {
            PostingsReaderBase postings = new Lucene40PostingsReader(state.Directory, state.FieldInfos,
                state.SegmentInfo,
                state.Context, state.SegmentSuffix);

            var success = false;
            FieldsProducer ret;
            using (ret = new AppendingTermsReader(
                state.Directory,
                state.FieldInfos,
                state.SegmentInfo,
                postings,
                state.Context,
                state.SegmentSuffix,
                state.TermsIndexDivisor))
            {
                success = true;
            }

            return ret;
            
        }
Пример #8
0
        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();
                }
            }
        }
Пример #9
0
 internal LiveDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, IBits liveDocs)
     : base(outerInstance, startFreqIn, liveDocs)
 {
     this.outerInstance = outerInstance;
     Debug.Assert(liveDocs != null);
 }
Пример #10
0
 internal AllDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn)
     : base(outerInstance, startFreqIn, null)
 {
     this.outerInstance = outerInstance;
     Debug.Assert(m_liveDocs == null);
 }
Пример #11
0
 public SegmentDocsAndPositionsEnum(Lucene40PostingsReader outerInstance, IndexInput freqIn, IndexInput proxIn)
 {
     this.OuterInstance = outerInstance;
     StartFreqIn = freqIn;
     this.FreqIn = (IndexInput)freqIn.Clone();
     this.ProxIn = (IndexInput)proxIn.Clone();
 }
Пример #12
0
 internal LiveDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, Bits liveDocs)
     : base(outerInstance, startFreqIn, liveDocs)
 {
     this.OuterInstance = outerInstance;
     Debug.Assert(liveDocs != null);
 }
Пример #13
0
 internal AllDocsSegmentDocsEnum(Lucene40PostingsReader outerInstance, IndexInput startFreqIn)
     : base(outerInstance, startFreqIn, null)
 {
     this.OuterInstance = outerInstance;
     Debug.Assert(LiveDocs == null);
 }
Пример #14
0
 internal SegmentDocsEnumBase(Lucene40PostingsReader outerInstance, IndexInput startFreqIn, Bits liveDocs)
 {
     this.OuterInstance = outerInstance;
     this.StartFreqIn = startFreqIn;
     this.FreqIn = (IndexInput)startFreqIn.Clone();
     this.LiveDocs = liveDocs;
 }