Xmipp
v3.23.11-Nereus
|
#include <metadata_query.h>
Public Member Functions | |
MDQuery (int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID, bool asc=true) | |
virtual | ~MDQuery () |
String | orderByString () const |
String | limitString () const |
String | whereString () const |
virtual String | queryStringFunc () const |
Public Attributes | |
int | limit |
If distint of -1 the results will be limited to this value. More... | |
int | offset |
If distint of 0, offset elements will be discarded. More... | |
MDLabel | orderLabel |
Label to which apply sort of the results. More... | |
bool | asc |
This is the base class for queries on MetaData. It is abstract, so it can not be instanciated. Queries will be very helpful for performing several tasks on MetaData like importing, searching or removing objects.
Definition at line 41 of file metadata_query.h.
|
inline |
Constructor.
Definition at line 50 of file metadata_query.h.
|
inlinevirtual |
String MDQuery::limitString | ( | ) | const |
Return the LIMIT string to be used in SQL
Definition at line 3 of file metadata_query.cpp.
|
inline |
Return the ORDER BY string to be used in SQL query
Definition at line 62 of file metadata_query.h.
|
inlinevirtual |
Return the query string, should be overrided in subclasses
Reimplemented in MDMultiQuery, MDExpression, MDValueRange, and MDValueRelational.
Definition at line 78 of file metadata_query.h.
|
inline |
bool MDQuery::asc |
Definition at line 47 of file metadata_query.h.
int MDQuery::limit |
If distint of -1 the results will be limited to this value.
Definition at line 44 of file metadata_query.h.
int MDQuery::offset |
If distint of 0, offset elements will be discarded.
Definition at line 45 of file metadata_query.h.
MDLabel MDQuery::orderLabel |
Label to which apply sort of the results.
Definition at line 46 of file metadata_query.h.