MarkLogic Connect
MarkLogic Connect Client API Collection
|
A Generic Query concrete class for an IQuery. More...
#include <SearchBuilder.hpp>
Public Member Functions | |
MLCLIENT_API | GenericQuery () |
Creates a blank GenericQuery instance. | |
MLCLIENT_API void | setQuery (const std::string &value) |
Sets the query from a (JSON) string value. More... | |
MLCLIENT_API const std::string & | getQuery () const |
Returns the underlying query as text from this query instance. More... | |
Public Member Functions inherited from mlclient::utilities::IQuery | |
MLCLIENT_API | IQuery ()=default |
Default Constructor. | |
virtual MLCLIENT_API | ~IQuery ()=default |
Default Destructor. | |
Protected Member Functions | |
std::ostream & | write (std::ostream &os) const override |
A Generic Query concrete class for an IQuery.
This class is useful when you want to provide the low-level text (JSON representation of structure query configuration) rather than create a subclass for every potential IQuery instance.
MLCLIENT_API const std::string& mlclient::utilities::GenericQuery::getQuery | ( | ) | const |
Returns the underlying query as text from this query instance.
MLCLIENT_API void mlclient::utilities::GenericQuery::setQuery | ( | const std::string & | value | ) |
Sets the query from a (JSON) string value.
value | The string JSON structured query value for this query |