OOFILE  1.9
Public Member Functions | Protected Attributes | List of all members

Manage keyword indexing for a dbTable which has indexed fields. More...

#include <oofctrex.h>

Inheritance diagram for OOF_ctreeKeywordIndex:
Inheritance graph
[legend]
Collaboration diagram for OOF_ctreeKeywordIndex:
Collaboration graph
[legend]

Public Member Functions

void addRecordForOID (const char *theWord, fieldNumT, oidT)
 
void appendFieldNo (fieldNumT)
 
void buildSchema (dbTable *parentTable)
 
void close ()
 
void decRefs ()
 
void deleteStorage ()
 
void deleteWords (oidT, fieldNumT) const
 
void deleteWords (oidT) const
 
void incRefs ()
 
bool indexesField (fieldNumT) const
 
 OOF_ctreeKeywordIndex ()
 
void rebuild ()
 
void searchField (dbTable *, fieldNumT, const char *, bool startsWith=false) const
 
void searchFieldAllWords (dbTable *, fieldNumT, dbQueryLiteralStrMultiValue *, bool startsWith=false) const
 
void searchFieldAnyWords (dbTable *, fieldNumT, dbQueryLiteralStrMultiValue *, bool startsWith=false) const
 
void searchTable (dbTable *, const char *, bool startsWith=false) const
 
void searchTableAllWords (dbTable *, dbQueryLiteralStrMultiValue *, bool startsWith=false) const
 
void searchTableAnyWords (dbTable *, dbQueryLiteralStrMultiValue *, bool startsWith=false) const
 
void suppressIndices ()
 
void updateWords (dbTable *inTable, bool isNew, const OOF_dirtyFieldMap &)
 
virtual ~OOF_ctreeKeywordIndex ()
 

Protected Attributes

unsigned int mReferences
 

Detailed Description

Manage keyword indexing for a dbTable which has indexed fields.

Uses a OOF_ctreeKeywordTable to store the actual keyword indexes.

See also
OOF_ctreeBackend::BuildBackendtables

Definition at line 235 of file oofctrex.h.

Constructor & Destructor Documentation

OOF_ctreeKeywordIndex::OOF_ctreeKeywordIndex ( )

Definition at line 134 of file oofctre1.cpp.

OOF_ctreeKeywordIndex::~OOF_ctreeKeywordIndex ( )
virtual

Definition at line 140 of file oofctre1.cpp.

Member Function Documentation

void OOF_ctreeKeywordIndex::addRecordForOID ( const char *  theWord,
fieldNumT  fldNum,
oidT  currOID 
)

Definition at line 378 of file oofctre1.cpp.

References dbTable::newRecord(), and dbTable::saveRecord().

Referenced by updateWords().

void OOF_ctreeKeywordIndex::appendFieldNo ( fieldNumT  n)

Definition at line 147 of file oofctre1.cpp.

References OOF_ExpandableLongArray::append().

Referenced by OOF_ctreeBackend::BuildBackendtables().

void OOF_ctreeKeywordIndex::buildSchema ( dbTable parentTable)

Definition at line 154 of file oofctre1.cpp.

References dbTable::tableName().

Referenced by OOF_ctreeBackend::buildSchema().

void OOF_ctreeKeywordIndex::close ( )

Definition at line 403 of file oofctre1.cpp.

References dbTable::close().

void OOF_mixRefCount::decRefs ( )
inherited
void OOF_ctreeKeywordIndex::deleteStorage ( )

Definition at line 410 of file oofctre1.cpp.

References dbTable::deleteStorage().

Referenced by OOF_ctreeBackend::deleteStorage().

void OOF_ctreeKeywordIndex::deleteWords ( oidT  currOID,
fieldNumT  fldNo 
) const

Definition at line 336 of file oofctre1.cpp.

References dbTable::deleteSelection(), and dbTable::search().

Referenced by OOF_ctreeBackend::deleteRecord(), and updateWords().

void OOF_ctreeKeywordIndex::deleteWords ( oidT  currOID) const

Definition at line 344 of file oofctre1.cpp.

References dbTable::deleteSelection(), and dbTable::search().

void OOF_mixRefCount::incRefs ( )
inlineinherited
bool OOF_ctreeKeywordIndex::indexesField ( fieldNumT  inFieldNum) const
void OOF_ctreeKeywordIndex::rebuild ( )

Definition at line 389 of file oofctre1.cpp.

References dbTable::rebuild().

Referenced by OOF_ctreeBackend::rebuild().

void OOF_ctreeKeywordIndex::searchField ( dbTable schTable,
fieldNumT  inFieldNum,
const char *  schWord,
bool  startsWith = false 
) const

Definition at line 213 of file oofctre1.cpp.

References indexesField(), dbTable::search(), and dbCompoundField::startsWith().

Referenced by searchFieldAllWords().

void OOF_ctreeKeywordIndex::searchFieldAllWords ( dbTable schTable,
fieldNumT  inFieldNum,
dbQueryLiteralStrMultiValue schWords,
bool  startsWith = false 
) const
void OOF_ctreeKeywordIndex::searchFieldAnyWords ( dbTable schTable,
fieldNumT  inFieldNum,
dbQueryLiteralStrMultiValue schWords,
bool  startsWith = false 
) const
void OOF_ctreeKeywordIndex::searchTable ( dbTable schTable,
const char *  schWord,
bool  startsWith = false 
) const

Definition at line 279 of file oofctre1.cpp.

References dbTable::search(), and dbCompoundField::startsWith().

Referenced by searchTableAllWords().

void OOF_ctreeKeywordIndex::searchTableAllWords ( dbTable schTable,
dbQueryLiteralStrMultiValue schWords,
bool  startsWith = false 
) const
void OOF_ctreeKeywordIndex::searchTableAnyWords ( dbTable schTable,
dbQueryLiteralStrMultiValue schWords,
bool  startsWith = false 
) const
void OOF_ctreeKeywordIndex::suppressIndices ( )

Definition at line 396 of file oofctre1.cpp.

References dbTable::suppressIndices().

Referenced by OOF_ctreeBackend::suppressIndices().

void OOF_ctreeKeywordIndex::updateWords ( dbTable inTable,
bool  isNew,
const OOF_dirtyFieldMap dirtyMap 
)

Member Data Documentation

unsigned int OOF_mixRefCount::mReferences
protectedinherited

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