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

« back to all changes in this revision

Viewing changes to src/core/CLucene/index/_TermInfo.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
#ifndef _lucene_index_TermInfo
 
8
#define _lucene_index_TermInfo
 
9
 
 
10
 
 
11
CL_NS_DEF(index)
 
12
 
 
13
// A TermInfo is the record of information stored for a term.
 
14
class TermInfo: LUCENE_BASE{
 
15
public:
 
16
        // The number of documents which contain the term. 
 
17
        int32_t docFreq;
 
18
 
 
19
        //A pointer into the TermFreqs file (.frq)
 
20
        //The .frq file contains the lists of documents which contain each term, 
 
21
        //along with the frequency of the term in that document.
 
22
        int64_t freqPointer;
 
23
 
 
24
        //A pointer into the TermPosition file (.prx).
 
25
        //The .prx file contains the lists of positions that each term 
 
26
        //occurs at within documents.
 
27
        int64_t proxPointer;
 
28
 
 
29
  int32_t skipOffset;
 
30
 
 
31
    //Constructor
 
32
        TermInfo();
 
33
 
 
34
    //Constructor
 
35
        TermInfo(const int32_t df, const int64_t fp, const int64_t pp);
 
36
 
 
37
        //Constructor
 
38
        //Initialises this instance by copying the values of another TermInfo ti
 
39
        TermInfo(const TermInfo* ti);
 
40
 
 
41
    //Destructor
 
42
        ~TermInfo();
 
43
 
 
44
        //Sets a new document frequency, a new freqPointer and a new proxPointer
 
45
        void set(const int32_t docFreq, const int64_t freqPointer, const int64_t proxPointer, int32_t skipOffset);
 
46
 
 
47
        //Sets a new document frequency, a new freqPointer and a new proxPointer
 
48
    //by copying these values from another instance of TermInfo
 
49
        void set(const TermInfo* ti);
 
50
};
 
51
CL_NS_END
 
52
#endif