Implements browsing the documents of a storage without weighting query, just with a restriction on metadata.
More...
#include <bindingObjects.hpp>
|
| DocumentBrowser (const DocumentBrowser &o) |
| Copy constructor. More...
|
|
| ~DocumentBrowser () |
| Destructor. More...
|
|
void | addMetaDataRestrictionCondition (const char *compareOp, const String &name, const Variant &value, bool newGroup) |
| Define a meta data restriction condition on the documents visited. More...
|
|
void | addMetaDataRestrictionCondition (const char *compareOp, const String &name, double value, bool newGroup) |
| Define a meta data restriction condition on the documents visited. More...
|
|
void | addMetaDataRestrictionCondition (const char *compareOp, const String &name, unsigned int value, bool newGroup) |
| Define a meta data restriction condition on the documents visited. More...
|
|
void | addMetaDataRestrictionCondition (const char *compareOp, const String &name, int value, bool newGroup) |
| Define a meta data restriction condition on the documents visited. More...
|
|
Index | skipDoc (const Index &docno_) |
| Get the internal document number of the next document bigger or equal the document number passed. More...
|
|
String | attribute (const String &name) |
| Get an attribute of the current document visited. More...
|
|
Implements browsing the documents of a storage without weighting query, just with a restriction on metadata.
strus::DocumentBrowser::~DocumentBrowser |
( |
| ) |
|
|
inline |
void strus::DocumentBrowser::addMetaDataRestrictionCondition |
( |
const char * |
compareOp, |
|
|
const String & |
name, |
|
|
const Variant & |
value, |
|
|
bool |
newGroup |
|
) |
| |
Define a meta data restriction condition on the documents visited.
- Parameters
-
[in] | compareOp | compare operator, one of "=","!=",">=","<=","<",">" |
[in] | name | of the meta data field (left side of comparison operator) |
[in] | value | numeric value to compare with the meta data field (right side of comparison operator) |
[in] | newGroup | true, if the restriction is not an alternative condition to the previous one defined (alternative conditions are evaluated as logical OR) |
void strus::DocumentBrowser::addMetaDataRestrictionCondition |
( |
const char * |
compareOp, |
|
|
const String & |
name, |
|
|
double |
value, |
|
|
bool |
newGroup |
|
) |
| |
Define a meta data restriction condition on the documents visited.
- Parameters
-
[in] | compareOp | compare operator, one of "=","!=",">=","<=","<",">" |
[in] | name | of the meta data field (left side of comparison operator) |
[in] | value | numeric value to compare with the meta data field (right side of comparison operator) |
[in] | newGroup | true, if the restriction is not an alternative condition to the previous one defined (alternative conditions are evaluated as logical OR) |
void strus::DocumentBrowser::addMetaDataRestrictionCondition |
( |
const char * |
compareOp, |
|
|
const String & |
name, |
|
|
unsigned int |
value, |
|
|
bool |
newGroup |
|
) |
| |
Define a meta data restriction condition on the documents visited.
- Parameters
-
[in] | compareOp | compare operator, one of "=","!=",">=","<=","<",">" |
[in] | name | of the meta data field (left side of comparison operator) |
[in] | value | numeric value to compare with the meta data field (right side of comparison operator) |
[in] | newGroup | true, if the restriction is not an alternative condition to the previous one defined (alternative conditions are evaluated as logical OR) |
void strus::DocumentBrowser::addMetaDataRestrictionCondition |
( |
const char * |
compareOp, |
|
|
const String & |
name, |
|
|
int |
value, |
|
|
bool |
newGroup |
|
) |
| |
Define a meta data restriction condition on the documents visited.
- Parameters
-
[in] | compareOp | compare operator, one of "=","!=",">=","<=","<",">" |
[in] | name | of the meta data field (left side of comparison operator) |
[in] | value | numeric value to compare with the meta data field (right side of comparison operator) |
[in] | newGroup | true, if the restriction is not an alternative condition to the previous one defined (alternative conditions are evaluated as logical OR) |
String strus::DocumentBrowser::attribute |
( |
const String & |
name | ) |
|
Get an attribute of the current document visited.
- Returns
- the internal document number or 0, if there is no one left
Index strus::DocumentBrowser::skipDoc |
( |
const Index & |
docno_ | ) |
|
Get the internal document number of the next document bigger or equal the document number passed.
- Parameters
-
[in] | docno_ | document number to get the matching least upperbound from |
- Returns
- the internal document number
The documentation for this class was generated from the following file: