Exemple #1
0
        public static ISkipList AsSkipList(this IPostingList list)
        {
            var native = list as ISkipList;

            if (native != null)
            {
                return(native);
            }

            return(new BasicSkipList(list));
        }
 public TermQuery(IPostingList postings)
 {
     this.postings      = postings;
     this.matchIterator = new MatchIterator(postings.GetEnumerator());
     this.consumed      = false;
 }
 public static ISearchQuery TermQuery(IPostingList postings)
 {
     return(new TermQuery(postings));
 }
Exemple #4
0
 public BasicSkipList(IPostingList list)
 {
     this.list = list;
 }