~ubuntu-branches/ubuntu/raring/clucene-core/raring-proposed

« back to all changes in this revision

Viewing changes to src/CLucene/search/RangeFilter.h

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-08-11 09:33:38 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120811093338-fgrx41ftqew3qt6a
Tags: 2.3.3.4-1
* New upstream release (Closes: #661703).
* Convert package to multiarch.
* Drop obsolete patches:
  - 01_add_missing_include_bug505667.diff
  - 02_posixness_fix_bug530308.diff
* Add patches:
  - Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
  - Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
  - Install-contribs-lib.patch
  - multiarch.patch
* Update debian/compat: bump to 8.
* Update debian/control:
  - update build dependencies (add cmake, libboost-dev and libz-dev).
  - bump Standards-Version to 3.9.3.
  - rename packages due to ABI bump: libclucene0ldbl -> libclucene-core1.
  - add libclucene-contribs1 package.
* Update debian/rules:
  - rewrite to use CMake.
  - add multiarch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*------------------------------------------------------------------------------
2
 
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
3
 
4
 
* Distributable under the terms of either the Apache License (Version 2.0) or 
5
 
* the GNU Lesser General Public License, as specified in the COPYING file.
6
 
------------------------------------------------------------------------------*/
7
 
 
8
 
#ifndef _lucene_search_RangeFilter_
9
 
#define _lucene_search_RangeFilter_
10
 
 
11
 
#include "CLucene/document/DateField.h"
12
 
#include "CLucene/index/Term.h"
13
 
#include "CLucene/index/Terms.h"
14
 
#include "CLucene/index/IndexReader.h"
15
 
#include "CLucene/util/BitSet.h"
16
 
#include "CLucene/search/Filter.h"
17
 
 
18
 
CL_NS_DEF(search)
19
 
 
20
 
class RangeFilter: public Filter 
21
 
{
22
 
private:
23
 
        const TCHAR* field;
24
 
        TCHAR* lowerValue;
25
 
        TCHAR* upperValue;
26
 
        bool   includeLower;
27
 
        bool   includeUpper;
28
 
        
29
 
protected:
30
 
        RangeFilter( const RangeFilter& copy );
31
 
        
32
 
public:
33
 
        RangeFilter( const TCHAR* fieldName, const TCHAR* lowerValue, const TCHAR* upperValue, bool includeLower, bool includeUpper );
34
 
        
35
 
        static RangeFilter* Less( TCHAR* fieldName, TCHAR* upperTerm );
36
 
        
37
 
        static RangeFilter* More( TCHAR* fieldName, TCHAR* lowerTerm );
38
 
        
39
 
        ~RangeFilter();
40
 
        
41
 
        /** Returns a BitSet with true for documents which should be permitted in
42
 
        search results, and false for those that should not. */
43
 
        CL_NS(util)::BitSet* bits( CL_NS(index)::IndexReader* reader );
44
 
        
45
 
        Filter* clone() const;
46
 
        
47
 
        TCHAR* toString();
48
 
};
49
 
 
50
 
CL_NS_END
51
 
#endif