DistributedSqlEngine provides the client interface for distributed execution of SQL queries.
For an overview see page C++ Classes
DistributedSqlEngine inherits all public methods from base class SqlEngine; the principal methods are listed on the McoSqlEngine page. The additional specialized methods of DistributedSqlEngine are described in the grid below.
DistributedSqlEngine(size_t txBufSize = 64 * 1024)Constructs the SQL engine remote interface. The parametertxBufSizespecifies the size of the transmit buffer used to serialize requests to be sent to the server (default is 64k).Opens the client SQL engine and connects to the server.close()Closes the connection with the servers.isRemote()Checks if the engine is local or remote.bool getServerQueryStats(QueryStat &ret_stat);Gets the last query statistics. Returnstrueif statistics were collected andret_statreceived the statistics;falseif statistics were not collected.void printQueryStat(FILE *out);Prints the gathered statistics to a file.virtual void onReplicaConnectionFailure(int node, int errorCode);Handles replica connection failure. Can be redefined in a derived class. By default, it just writes a message in the log file.virtual void onReplicaReconnect(int node);Handles replica reconnection. Can be redefined in a derived class. By default, it just writes a message in the log file.DESTROY(DistributedSqlEngine)Generates the destructor to destroy the SQL engine remote interface.