Empty() публичный статический Метод

An empty {@code DocIdSetIterator} instance
public static Empty ( ) : DocIdSetIterator
Результат DocIdSetIterator
Пример #1
0
            public override Explanation Explain(AtomicReaderContext ir, int i)
            {
                Explanation      inner            = Weight.Explain(ir, i);
                Filter           f                = OuterInstance.Filter_Renamed;
                DocIdSet         docIdSet         = f.GetDocIdSet(ir, ir.AtomicReader.LiveDocs);
                DocIdSetIterator docIdSetIterator = docIdSet == null?DocIdSetIterator.Empty() : docIdSet.GetIterator();

                if (docIdSetIterator == null)
                {
                    docIdSetIterator = DocIdSetIterator.Empty();
                }
                if (docIdSetIterator.Advance(i) == i)
                {
                    return(inner);
                }
                else
                {
                    Explanation result = new Explanation(0.0f, "failure to match filter: " + f.ToString());
                    result.AddDetail(inner);
                    return(result);
                }
            }
Пример #2
0
 public override DocIdSetIterator GetIterator()
 {
     return(DocIdSetIterator.Empty());
 }