コード例 #1
0
ファイル: FieldCache.cpp プロジェクト: Afreeca/qt
/*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
* 
* Distributable under the terms of either the Apache License (Version 2.0) or 
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------------------------------------------------------*/
#include "CLucene/StdHeader.h"
#include "FieldCache.h"
#include "FieldCacheImpl.h"

CL_NS_DEF(search)

FieldCache* FieldCache::DEFAULT = _CLNEW FieldCacheImpl();
int32_t FieldCache::STRING_INDEX = -1;

FieldCacheAuto::FieldCacheAuto(int32_t len, int32_t type){
	contentType = type;
	contentLen = len;
	ownContents = false;
	
	intArray=NULL;
	floatArray=NULL;
	stringIndex=NULL;
	stringArray=NULL;
	comparableArray=NULL;
	sortComparator=NULL;
	scoreDocComparator=NULL;
}
FieldCacheAuto::~FieldCacheAuto(){
	if ( contentType == FieldCacheAuto::INT_ARRAY ){
		_CLDELETE_ARRAY(intArray);
コード例 #2
0
FieldCache * FieldCache::DEFAULT_CREATOR::create()
	{
		return _CLNEW_NOMEMTRACE FieldCacheImpl();
	}