ddc
|
m_arg0: field name, m_arg1: lower_bound, m_arg2: upper_bound More...
#include <QueryFilter.h>
Public Member Functions | |
CQFBiblSort (HitSortEnum ftype=LessByFreeBiblField, const string &field=string(""), const string &lb=string(""), const string &ub=string("")) | |
virtual | ~CQFBiblSort () |
virtual CQFilter * | Clone () |
clone this filter More... | |
virtual bool | Compile (CQueryCompiler *compiler, CQueryOptions *options) |
compile the filter. requires reference to underlying CConcIndexator More... | |
virtual string | toString (void) |
convert filter to a canonical string More... | |
virtual string | jsonClass (void) |
virtual string | jsonData (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) |
Public Member Functions inherited from CQFilter | |
CQFilter () | |
Default constructor. More... | |
virtual | ~CQFilter () |
Default destructor (empty) More... | |
virtual bool | CheckSatisfiable (CQueryCompiler *compiler, CQueryOptions *options) |
Run fast (un)satisfiability checks for filter before Compile() is called. Default just returns true. 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 () |
Additional Inherited Members | |
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... | |
m_arg0: field name, m_arg1: lower_bound, m_arg2: upper_bound
|
inline |
|
inlinevirtual |
|
inlinevirtual |
clone this filter
Reimplemented from CQFSort.
References CQFilter::Compile(), and CQFilter::toString().
|
virtual |
compile the filter. requires reference to underlying CConcIndexator
Reimplemented from CQFSort.
References CQFSort::Compile(), errParseError, CBiblIndex::GetFilterBounds(), CQFSort::m_arg0, CQFSort::m_arg1, CQFSort::m_arg2, CDDCFilterWithBounds::m_AttrName, CConcordance::m_BiblIndex, CQueryCompiler::m_bSatisfiable, CQFSort::m_Filter, CConcSession::m_pConcordance, CQueryCompiler::m_pHolder, CQFSort::ResolveAttributeName(), and CQFSort::toString().
|
virtual |
convert filter to a canonical string
Reimplemented from CQFSort.
References CQFSort::argString(), EngMakeUpper(), escapeChars(), HitSortEnumStrings, CQFSort::m_arg0, CQFSort::m_arg1, CQFSort::m_arg2, CQFSort::m_Filter, and CDDCFilterWithBounds::m_FilterType.
|
inlinevirtual |
class-name for json strinfication
Reimplemented from CQFSort.
References ddcObject::jsonData().
|
virtual |
instance data for json stringification
Reimplemented from CQFSort.
References CQFSort::jsonMinMax(), jsonStr(), CQFSort::jsonType(), and CQFSort::m_arg0.
|
virtual |
Reimplemented from CQFSort.
References jsonStr(), CQFSort::m_arg1, and CQFSort::m_arg2.