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


lucene::search::FieldCacheAuto Class Reference

A class holding an AUTO field. More...

#include <FieldCache.h>


Public Types

enum  {
  INT_ARRAY = 1, FLOAT_ARRAY = 2, STRING_INDEX = 3, STRING_ARRAY = 4,
  COMPARABLE_ARRAY = 5, SORT_COMPARATOR = 6, SCOREDOC_COMPARATOR = 7
}

Public Member Functions

 FieldCacheAuto (int32_t len, int32_t type)
 ~FieldCacheAuto ()

Data Fields

bool ownContents
 if contents should be deleted too, depending on type
int32_t contentLen
uint8_t contentType
int32_t * intArray
float_t * floatArray
FieldCache::StringIndexstringIndex
TCHAR ** stringArray
lucene::util::Comparable ** comparableArray
SortComparatorsortComparator
ScoreDocComparatorscoreDocComparator


Detailed Description

A class holding an AUTO field.

In java lucene an Object is used, but we use this. contentType: 1 - integer array 2 - float array 3 - FieldCache::StringIndex object This class is also used when returning getInt, getFloat, etc because we have no way of returning the size of the array and this class can be used to determine the array size


Member Enumeration Documentation

anonymous enum

Enumerator:
INT_ARRAY 
FLOAT_ARRAY 
STRING_INDEX 
STRING_ARRAY 
COMPARABLE_ARRAY 
SORT_COMPARATOR 
SCOREDOC_COMPARATOR 


Constructor & Destructor Documentation

lucene::search::FieldCacheAuto::FieldCacheAuto ( int32_t  len,
int32_t  type 
)

lucene::search::FieldCacheAuto::~FieldCacheAuto (  ) 


Field Documentation

if contents should be deleted too, depending on type


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

clucene.sourceforge.net