ddc
|
m_arg0: field name, m_arg1: lower_bound, m_arg2: upper_bound More...
#include <QueryFilter.h>
Public Member Functions | |
CQFContextSort (HitSortEnum ftype=LessByMiddleContext, const string &field=string(""), int matchid=0, int offset=0, const string &lb=string(""), const string &ub=string("")) | |
virtual | ~CQFContextSort () |
virtual CQFilter * | Clone () |
clone this filter More... | |
virtual bool | Compile (CQueryCompiler *compiler, CQueryOptions *options) |
compile the filter More... | |
virtual string | toString (void) |
convert filter to a canonical string More... | |
virtual string | jsonClass (void) |
virtual string | jsonData (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 | jsonMinMax (void) |
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
Reimplemented from CQFSort.
References CQFSort::Compile(), errParseError, CStringIndexSet::GetContextBounds(), CStringIndexator::GetIndexByAlias(), CStringIndexator::GetTokenIndex(), CQFSort::m_arg0, CQFSort::m_arg1, CQFSort::m_arg2, CDDCFilterWithBounds::m_AttrName, CQueryCompiler::m_bSatisfiable, CQFSort::m_Filter, CStringIndexSet::m_Name, CConcSession::m_pConcordance, CQueryCompiler::m_pHolder, and CQFSort::toString().
|
virtual |
convert filter to a canonical string
Reimplemented from CQFSort.
References CQFSort::argString(), EngMakeUpper(), Format(), HitSortEnumStrings, CQFSort::m_arg0, CQFSort::m_arg1, CQFSort::m_arg2, CDDCFilterWithBounds::m_ContextMatchId, CDDCFilterWithBounds::m_ContextOffset, 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 Format(), jsonStr(), CQFSort::jsonType(), CQFSort::m_arg0, CDDCFilterWithBounds::m_ContextMatchId, CDDCFilterWithBounds::m_ContextOffset, and CQFSort::m_Filter.