ddc
|
#include <QueryFilter.h>
Public Member Functions | |
CQFHasFieldRegex (const std::string &field, const std::string &val=string(""), bool isNegated=false) | |
virtual | ~CQFHasFieldRegex () |
virtual CQFilter * | Clone () |
clone this filter More... | |
virtual bool | CheckSatisfiable (CQueryCompiler *compiler, CQueryOptions *options) |
Run fast (un)satisfiability checks for filter before Compile() is called. Default just returns true. More... | |
virtual bool | Compile (CQueryCompiler *compiler, CQueryOptions *options) |
compile the filter. requires reference to underlying CConcIndexator More... | |
virtual string | valueString (void) |
value string for stringification More... | |
virtual string | jsonClass (void) |
Public Member Functions inherited from CQFHasField | |
CQFHasField (const std::string &field, const std::string &val=string(""), bool isNegated=false) | |
virtual | ~CQFHasField () |
virtual void | Negate (void) |
negate the filter condition More... | |
virtual string | toString (void) |
generic stringification; uses valueString() More... | |
virtual string | jsonFieldValue (void) |
virtual string | jsonMinMax (void) |
Public Member Functions inherited from CQFSort | |
CQFSort (HitSortEnum ftype=NoSort, const string &arg0=string(""), const string &arg1=string(""), const string &arg2=string("")) | |
CQFSort (HitSortEnum ftype, const string &arg0, int arg1i, int arg2i) | |
virtual | ~CQFSort () |
virtual HitSortEnum | FilterType () const |
sort-type for this filter (if any) More... | |
void | SortBounds (void) |
swap lower- and upper-bounds if they not in logical order More... | |
string | ResolveAttributeName (CQueryCompiler *compiler, const string &attrName, bool allowBiblExpander=false) |
CFreeBiblIndex * | GetBiblConstant (CQueryCompiler *compiler, const string &attrName, bool allowBiblExpander=true) |
compilation & satisfiability-check utility: return constant bibliographic index for attrName (if it is one), or NULL More... | |
string | argString (const string &arg) const |
stringification utility: quoted strign for arg, or empty string More... | |
virtual string | jsonType (void) |
virtual string | jsonData (void) |
Public Member Functions inherited from CQFilter | |
CQFilter () | |
Default constructor. More... | |
virtual | ~CQFilter () |
Default destructor (empty) More... | |
Public Member Functions inherited from ddcObject | |
ddcObject () | |
Default constructor. More... | |
virtual | ~ddcObject () |
virtual destructor does nothing More... | |
virtual ddcObjectList | Children () const |
virtual void | DisownChildren () |
template<typename Visit > | |
ddcObject * | Traverse (Visit &visit) |
template<typename Visit > | |
ddcObject * | Traverse (Visit &visit) const |
template<typename Visit > | |
ddcObject * | TraverseR (Visit &visit) |
template<typename Visit > | |
ddcObject * | TraverseR (Visit &visit) const |
virtual ddcObjectList | Descendants () const |
virtual string | toJson () |
Public Attributes | |
std::string | m_Regex |
target regex (same as m_arg1 for direct regex filters; auto-generated for prefix-, suffix-, and infix-filters) More... | |
Public Attributes inherited from CQFHasField | |
bool | m_Negated |
is this a negated filter? More... | |
Public Attributes inherited from CQFSort | |
CDDCFilterWithBounds | m_Filter |
underlying DDC Filter struct More... | |
std::string | m_arg0 |
0th argument (e.g. field name) More... | |
std::string | m_arg1 |
1st argument (e.g. lower bound) More... | |
std::string | m_arg2 |
2nd argument (e.g. upper bound) More... | |
Public Attributes inherited from ddcObject | |
void * | m_User |
user data associated with this object (for use e.g. by perl wrappers) More... | |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
clone this filter
Reimplemented from CQFHasField.
Reimplemented in CQFHasFieldInfix, CQFHasFieldSuffix, and CQFHasFieldPrefix.
References CQFilter::CheckSatisfiable(), and CQFilter::Compile().
|
virtual |
Run fast (un)satisfiability checks for filter before Compile() is called. Default just returns true.
Reimplemented from CQFilter.
References CQFRandomSort::Compile(), CQFSort::GetBiblConstant(), CQFSort::m_arg0, CQFSort::m_Filter, and CDDCFilterWithBounds::m_SatisfiedValues.
|
virtual |
compile the filter. requires reference to underlying CConcIndexator
Reimplemented from CQFHasField.
References CQFSort::Compile(), CQFHasField::Compile(), errParseError, CBiblIndex::GetFilterValues(), CConcordance::m_BiblIndex, CDDCFilterWithBounds::m_bNegated, CQueryCompiler::m_bSatisfiable, CQFSort::m_Filter, CConcSession::m_pConcordance, CQueryCompiler::m_pHolder, and CQFSort::toString().
|
virtual |
value string for stringification
Reimplemented from CQFHasField.
Reimplemented in CQFHasFieldInfix, CQFHasFieldSuffix, and CQFHasFieldPrefix.
References CQFSort::m_arg1, and reString().
|
inlinevirtual |
class-name for json strinfication
Reimplemented from CQFHasField.
Reimplemented in CQFHasFieldInfix, CQFHasFieldSuffix, and CQFHasFieldPrefix.
std::string CQFHasFieldRegex::m_Regex |
target regex (same as m_arg1 for direct regex filters; auto-generated for prefix-, suffix-, and infix-filters)