strus  0.17
Public Member Functions | List of all members
strus::MetaDataRestrictionInstanceInterface Class Referenceabstract

Class for building up a metadata restriction. More...

#include <metaDataRestrictionInstanceInterface.hpp>

Public Member Functions

virtual ~MetaDataRestrictionInstanceInterface ()
 Destructor. More...
 
virtual bool match (const Index &docno) const =0
 Evaluate if a document matches the restriction condition. More...
 

Detailed Description

Class for building up a metadata restriction.

Constructor & Destructor Documentation

virtual strus::MetaDataRestrictionInstanceInterface::~MetaDataRestrictionInstanceInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool strus::MetaDataRestrictionInstanceInterface::match ( const Index docno) const
pure virtual

Evaluate if a document matches the restriction condition.

Parameters
[in]docnolocal internal document number of the document to match
Returns
true, if it matches, false if not
Remarks
A deleted document has every metadata element nulled out. So it depends on the restriction expression wheter the document number matches or not. There esists no other flag for the document number in the system telling wheter it exists or not.

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