Logo Search packages:      
Sourcecode: qt4-x11 version File versions

FieldInfos Class Reference

#include <FieldInfos.h>

List of all members.


Detailed Description

Access to the Field Info file that describes document fields and whether or not they are indexed. Each segment has a separate Field Info file. Objects of this class are thread-safe for multiple readers, but only one thread can be adding documents at a time, with no other reader or writer threads accessing this object.

Definition at line 72 of file FieldInfos.h.


Public Types

enum  {
  IS_INDEXED = 0x1, STORE_TERMVECTOR = 0x2, STORE_POSITIONS_WITH_TERMVECTOR = 0x4, STORE_OFFSET_WITH_TERMVECTOR = 0x8,
  OMIT_NORMS = 0x10
}

Public Member Functions

void add (const TCHAR **names, const bool isIndexed, const bool storeTermVector=false, bool storePositionWithTermVector=false, bool storeOffsetWithTermVector=false, bool omitNorms=false)
void add (const TCHAR *name, const bool isIndexed, const bool storeTermVector=false, bool storePositionWithTermVector=false, bool storeOffsetWithTermVector=false, bool omitNorms=false)
void add (FieldInfos *other)
void add (const CL_NS(document)::Document *doc)
FieldInfo * fieldInfo (const int32_t fieldNumber) const
FieldInfo * fieldInfo (const TCHAR *fieldName) const
 FieldInfos (CL_NS(store)::Directory *d, const char *name)
const TCHAR * fieldName (const int32_t fieldNumber) const
int32_t fieldNumber (const TCHAR *fieldName) const
bool hasVectors () const
int32_t size () const
void write (CL_NS(store)::IndexOutput *output) const
void write (CL_NS(store)::Directory *d, const char *name) const

Private Types

typedef CL_NS(util) defByName byName

Private Member Functions

void addInternal (const TCHAR *name, const bool isIndexed, const bool storeTermVector, const bool storePositionWithTermVector, const bool storeOffsetWithTermVector, const bool omitNorms)
void read (CL_NS(store)::IndexInput *input)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index