Base class for Lucene Filters on SpatialPrefixTree fields. @lucene.experimental
Inheritance: Lucene.Net.Search.Filter
Esempio n. 1
0
        protected BaseTermsEnumTraverser(AbstractPrefixTreeFilter filter, AtomicReaderContext context, IBits?acceptDocs)  // LUCENENET: CA1012: Abstract types should not have constructors (marked protected)
        {
            // LUCENENET specific - added guard clauses
            this.m_filter  = filter ?? throw new ArgumentNullException(nameof(filter));
            this.m_context = context ?? throw new ArgumentNullException(nameof(context));
            AtomicReader reader = context.AtomicReader;

            this.m_acceptDocs = acceptDocs;
            m_maxDoc          = reader.MaxDoc;
            Terms?terms = reader.GetTerms(filter.m_fieldName);

            if (terms != null)
            {
                m_termsEnum = terms.GetEnumerator();
            }
        }
            public BaseTermsEnumTraverser(AbstractPrefixTreeFilter outerInstance, AtomicReaderContext context, IBits acceptDocs)
            {
                this.m_outerInstance = outerInstance;

                this.m_context = context;
                AtomicReader reader = context.AtomicReader;

                this.m_acceptDocs = acceptDocs;
                m_maxDoc          = reader.MaxDoc;
                Terms terms = reader.GetTerms(outerInstance.m_fieldName);

                if (terms != null)
                {
                    m_termsEnum = terms.GetIterator(null);
                }
            }
            protected BaseTermsEnumTraverser(AbstractPrefixTreeFilter outerInstance, AtomicReaderContext context, IBits acceptDocs) // LUCENENET: CA1012: Abstract types should not have constructors (marked protected)
            {
                this.m_outerInstance = outerInstance;

                this.m_context = context;
                AtomicReader reader = context.AtomicReader;

                this.m_acceptDocs = acceptDocs;
                m_maxDoc          = reader.MaxDoc;
                Terms terms = reader.GetTerms(outerInstance.m_fieldName);

                if (terms != null)
                {
                    m_termsEnum = terms.GetEnumerator();
                }
            }
Esempio n. 4
0
            /// <exception cref="System.IO.IOException"></exception>
            public BaseTermsEnumTraverser(AbstractPrefixTreeFilter _enclosing, AtomicReaderContext
                                          context, IBits acceptDocs)
            {
                this._enclosing = _enclosing;
                //remember to check for null in getDocIdSet
                this.context = context;
                AtomicReader reader = context.AtomicReader;

                this.acceptDocs = acceptDocs;
                maxDoc          = reader.MaxDoc;
                Terms terms = reader.Terms(this._enclosing.fieldName);

                if (terms != null)
                {
                    termsEnum = terms.Iterator(null);
                }
            }
 public BaseTermsEnumTraverser(AbstractPrefixTreeFilter outerInstance, AtomicReaderContext context, Bits acceptDocs)
 {
     this.outerInstance = outerInstance;
     
     this.context = context;
     AtomicReader reader = context.AtomicReader;
     this.acceptDocs = acceptDocs;
     maxDoc = reader.MaxDoc;
     Terms terms = reader.Terms(outerInstance.fieldName);
     if (terms != null)
     {
         termsEnum = terms.Iterator(null);
     }
 }
 /// <exception cref="System.IO.IOException"></exception>
 public BaseTermsEnumTraverser(AbstractPrefixTreeFilter _enclosing, AtomicReaderContext
     context, IBits acceptDocs)
 {
     this._enclosing = _enclosing;
     //remember to check for null in getDocIdSet
     this.context = context;
     AtomicReader reader = context.AtomicReader;
     this.acceptDocs = acceptDocs;
     maxDoc = reader.MaxDoc;
     Terms terms = reader.Terms(this._enclosing.fieldName);
     if (terms != null)
     {
         termsEnum = terms.Iterator(null);
     }
 }