CLucene - a full-featured, c++ search engine
API Documentation
#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::StringIndex * | stringIndex |
TCHAR ** | stringArray |
lucene::util::Comparable ** | comparableArray |
SortComparator * | sortComparator |
ScoreDocComparator * | scoreDocComparator |
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
anonymous enum |
lucene::search::FieldCacheAuto::FieldCacheAuto | ( | int32_t | len, | |
int32_t | type | |||
) |
lucene::search::FieldCacheAuto::~FieldCacheAuto | ( | ) |
if contents should be deleted too, depending on type
lucene:: util ::Comparable** lucene::search::FieldCacheAuto::comparableArray |