Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
DocIdBitSet.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef DOCIDBITSET_H
8#define DOCIDBITSET_H
9
10#include "DocIdSet.h"
11
12 namespace Lucene {
13
15 class LPPAPI DocIdBitSet : public DocIdSet {
16 public:
17 DocIdBitSet();
18 DocIdBitSet(const BitSetPtr& bitSet);
19
20 virtual ~DocIdBitSet();
21
22 LUCENE_CLASS(DocIdBitSet);
23
24 protected:
25 BitSetPtr bitSet;
26
27 public:
28 virtual DocIdSetIteratorPtr iterator();
29
31 virtual bool isCacheable();
32
34 BitSetPtr getBitSet();
35
36 virtual bool equals(const LuceneObjectPtr& other);
37 virtual int32_t hashCode();
38 virtual LuceneObjectPtr clone(const LuceneObjectPtr& other = LuceneObjectPtr());
39};
40
41}
42
43#endif
DocIdSet.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::DocIdBitSet
Simple DocIdSet and DocIdSetIterator backed by a BitSet.
Definition DocIdBitSet.h:15
Lucene::DocIdBitSet::DocIdBitSet
DocIdBitSet(const BitSetPtr &bitSet)
Lucene::DocIdBitSet::isCacheable
virtual bool isCacheable()
This DocIdSet implementation is cacheable.
Lucene::DocIdBitSet::DocIdBitSet
DocIdBitSet()
Lucene::DocIdBitSet::~DocIdBitSet
virtual ~DocIdBitSet()
Lucene::DocIdBitSet::iterator
virtual DocIdSetIteratorPtr iterator()
Provides a DocIdSetIterator to access the set. This implementation can return null or EmptyDocIdSet....
Lucene::DocIdBitSet::getBitSet
BitSetPtr getBitSet()
Returns the underlying BitSet.
Lucene::DocIdBitSet::bitSet
BitSetPtr bitSet
Definition DocIdBitSet.h:25
Lucene::DocIdBitSet::equals
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Lucene::DocIdBitSet::clone
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Return clone of this object.
Lucene::DocIdBitSet::hashCode
virtual int32_t hashCode()
Return hash code for this object.
Lucene::DocIdSet
A DocIdSet contains a set of doc ids. Implementing classes must only implement iterator to provide ac...
Definition DocIdSet.h:16
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition LuceneTypes.h:324
Lucene::BitSetPtr
boost::shared_ptr< BitSet > BitSetPtr
Definition LuceneTypes.h:522

clucene.sourceforge.net