| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <link rel="canonical" href="https://ignite.apache.org/releases/2.7.0/cppdoc/query__sql_8h_source.html" /> |
| <META NAME="ROBOTS" CONTENT="NOINDEX"> |
| |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.11"/> |
| <title> Apache Ignite C++: query_sql.h Source File</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(function() { init_search(); }); |
| </script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| |
| ga('create', 'UA-61232409-1', 'auto'); |
| ga('send', 'pageview'); |
| |
| </script></head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectlogo"><img alt="Logo" src="ignite_logo.png"/></td> |
| <td id="projectalign" style="padding-left: 0.5em;"> |
| <div id="projectname"> Apache Ignite C++ |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.11 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <div id="navrow1" class="tabs"> |
| <ul class="tablist"> |
| <li><a href="index.html"><span>Main Page</span></a></li> |
| <li><a href="pages.html"><span>Related Pages</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Classes</span></a></li> |
| <li class="current"><a href="files.html"><span>Files</span></a></li> |
| <li> |
| <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </li> |
| </ul> |
| </div> |
| <div id="navrow2" class="tabs2"> |
| <ul class="tablist"> |
| <li><a href="files.html"><span>File List</span></a></li> |
| <li><a href="globals.html"><span>File Members</span></a></li> |
| </ul> |
| </div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_1d5505cee217f179c88903b7091c150e.html">cache</a></li><li class="navelem"><a class="el" href="dir_13c1d00a1be9b016a133dec12b890b36.html">query</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">query_sql.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="query__sql_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * this work for additional information regarding copyright ownership.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef _IGNITE_CACHE_QUERY_QUERY_SQL</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define _IGNITE_CACHE_QUERY_QUERY_SQL</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <ignite/impl/cache/query/query_argument.h></span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="binary__raw__writer_8h.html">ignite/binary/binary_raw_writer.h</a>></span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">namespace </span>cache</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">namespace </span>query</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html"> 42</a></span>  <span class="keyword">class </span><a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aaa012e38597bf19751ebfb44642d1eec"> 51</a></span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aaa012e38597bf19751ebfb44642d1eec">SqlQuery</a>(<span class="keyword">const</span> std::string& type, <span class="keyword">const</span> std::string& sql) :</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  type(type),</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  sql(sql),</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  pageSize(1024),</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  loc(false),</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  distributedJoins(false),</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  args()</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// No-op.</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#afd18d1a83311dc68fe37629846849bc1"> 67</a></span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#afd18d1a83311dc68fe37629846849bc1">SqlQuery</a>(<span class="keyword">const</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a>& other) :</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  type(other.type),</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  sql(other.sql),</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  pageSize(other.pageSize),</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  loc(other.loc),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  distributedJoins(other.distributedJoins),</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  args()</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  args.reserve(other.args.size());</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">typedef</span> std::vector<impl::cache::query::QueryArgumentBase*>::const_iterator Iter;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">for</span> (Iter i = other.args.begin(); i != other.args.end(); ++i)</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  args.push_back((*i)->Copy());</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac31b6077c52d6875b0b5ebd8634b37e5"> 88</a></span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a>& <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac31b6077c52d6875b0b5ebd8634b37e5">operator=</a>(<span class="keyword">const</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a>& other) </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (<span class="keyword">this</span> != &other)</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a> tmp(other);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5591e0ffb6e596985bc9fc575d838c89">Swap</a>(tmp);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#af486d65c8b0004ec7fb1633b1400c986"> 103</a></span>  <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#af486d65c8b0004ec7fb1633b1400c986">~SqlQuery</a>()</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">typedef</span> std::vector<impl::cache::query::QueryArgumentBase*>::const_iterator Iter;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">for</span> (Iter it = args.begin(); it != args.end(); ++it)</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">delete</span> *it;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5591e0ffb6e596985bc9fc575d838c89"> 116</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5591e0ffb6e596985bc9fc575d838c89">Swap</a>(<a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html">SqlQuery</a>& other)</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span> (<span class="keyword">this</span> != &other)</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  std::swap(type, other.type);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  std::swap(sql, other.sql);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  std::swap(pageSize, other.pageSize);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  std::swap(loc, other.loc);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  std::swap(distributedJoins, other.distributedJoins);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::swap(args, other.args);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a3f4ebe6458b881817a9836bf3dcde00b"> 134</a></span>  <span class="keyword">const</span> std::string& <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a3f4ebe6458b881817a9836bf3dcde00b">GetType</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> type;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5609ce4f4005383181bf24c0768a7846"> 144</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5609ce4f4005383181bf24c0768a7846">SetType</a>(<span class="keyword">const</span> std::string& type)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  this->type = type;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a6e71945c77c452409df15162414a5c58"> 154</a></span>  <span class="keyword">const</span> std::string& <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a6e71945c77c452409df15162414a5c58">GetSql</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> sql;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aa4e9e9a79ea5ddbf8c8c0aada68f3b6d"> 164</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aa4e9e9a79ea5ddbf8c8c0aada68f3b6d">SetSql</a>(<span class="keyword">const</span> std::string& sql)</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  this->sql = sql;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a00149b4a5a51a9ecd9914eb6608507dd"> 174</a></span>  int32_t <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a00149b4a5a51a9ecd9914eb6608507dd">GetPageSize</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> pageSize;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aadf500528211e00a43cf7b87c0d0051f"> 184</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aadf500528211e00a43cf7b87c0d0051f">SetPageSize</a>(int32_t pageSize)</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  this->pageSize = pageSize;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a40cd1d0067d70c99c773deb335af146e"> 194</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a40cd1d0067d70c99c773deb335af146e">IsLocal</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">return</span> loc;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a907b6e4a5c4ea7ca6f80a3b687091f22"> 204</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a907b6e4a5c4ea7ca6f80a3b687091f22">SetLocal</a>(<span class="keywordtype">bool</span> loc)</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  this->loc = loc;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac34061593b2169d3ccd45c0d70460898"> 214</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac34061593b2169d3ccd45c0d70460898">IsDistributedJoins</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">return</span> distributedJoins;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aeb4896f55a3231852a8840eab1758f3c"> 227</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aeb4896f55a3231852a8840eab1758f3c">SetDistributedJoins</a>(<span class="keywordtype">bool</span> enabled)</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  distributedJoins = enabled;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac12b5dbd6439fe7f50d6eb86c06a06ea"> 242</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac12b5dbd6439fe7f50d6eb86c06a06ea">AddArgument</a>(<span class="keyword">const</span> T& arg)</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  {</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  args.push_back(<span class="keyword">new</span> impl::cache::query::QueryArgument<T>(arg));</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a8cd0867cc21f034ce965bdafa21412e6"> 250</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a8cd0867cc21f034ce965bdafa21412e6">ClearArguments</a>()</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  {</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  std::vector<impl::cache::query::QueryArgumentBase*>::iterator iter;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordflow">for</span> (iter = args.begin(); iter != args.end(); ++iter)</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">delete</span> *iter;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  args.clear();</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a46418efabfbd47e30eb7da4913d56714"> 264</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a46418efabfbd47e30eb7da4913d56714">Write</a>(<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html">binary::BinaryRawWriter</a>& writer)<span class="keyword"> const</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a2d7c6d2302b55a1bc4e249d19a72ec1b">WriteBool</a>(loc);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a7b9237e03749f5e27d57d6a926ba49b2">WriteString</a>(sql);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a7b9237e03749f5e27d57d6a926ba49b2">WriteString</a>(type);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a9aec134f65d3ef66601736de0a956382">WriteInt32</a>(pageSize);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a9aec134f65d3ef66601736de0a956382">WriteInt32</a>(static_cast<int32_t>(args.size()));</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  std::vector<impl::cache::query::QueryArgumentBase*>::const_iterator it;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">for</span> (it = args.begin(); it != args.end(); ++it)</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  (*it)->Write(writer);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a2d7c6d2302b55a1bc4e249d19a72ec1b">WriteBool</a>(distributedJoins);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a9aec134f65d3ef66601736de0a956382">WriteInt32</a>(0); <span class="comment">// Timeout, ms</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  writer.<a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html#a2d7c6d2302b55a1bc4e249d19a72ec1b">WriteBool</a>(<span class="keyword">false</span>); <span class="comment">// ReplicatedOnly</span></div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  }</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  std::string type;</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  std::string sql;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  int32_t pageSize;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordtype">bool</span> loc;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordtype">bool</span> distributedJoins;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  std::vector<impl::cache::query::QueryArgumentBase*> args;</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  };</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  }</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  } </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="preprocessor">#endif //_IGNITE_CACHE_QUERY_QUERY_SQL</span></div><div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a00149b4a5a51a9ecd9914eb6608507dd"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a00149b4a5a51a9ecd9914eb6608507dd">ignite::cache::query::SqlQuery::GetPageSize</a></div><div class="ttdeci">int32_t GetPageSize() const </div><div class="ttdoc">Get page size. </div><div class="ttdef"><b>Definition:</b> query_sql.h:174</div></div> |
| <div class="ttc" id="binary__raw__writer_8h_html"><div class="ttname"><a href="binary__raw__writer_8h.html">binary_raw_writer.h</a></div><div class="ttdoc">Declares ignite::binary::BinaryRawWriter class. </div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_aeb4896f55a3231852a8840eab1758f3c"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aeb4896f55a3231852a8840eab1758f3c">ignite::cache::query::SqlQuery::SetDistributedJoins</a></div><div class="ttdeci">void SetDistributedJoins(bool enabled)</div><div class="ttdoc">Specify if distributed joins are enabled for this query. </div><div class="ttdef"><b>Definition:</b> query_sql.h:227</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryRawWriter_html_a9aec134f65d3ef66601736de0a956382"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawWriter.html#a9aec134f65d3ef66601736de0a956382">ignite::binary::BinaryRawWriter::WriteInt32</a></div><div class="ttdeci">void WriteInt32(int32_t val)</div><div class="ttdoc">Write 32-byte signed integer. </div><div class="ttdef"><b>Definition:</b> binary_raw_writer.cpp:72</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_ac31b6077c52d6875b0b5ebd8634b37e5"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac31b6077c52d6875b0b5ebd8634b37e5">ignite::cache::query::SqlQuery::operator=</a></div><div class="ttdeci">SqlQuery & operator=(const SqlQuery &other)</div><div class="ttdoc">Assignment operator. </div><div class="ttdef"><b>Definition:</b> query_sql.h:88</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a8cd0867cc21f034ce965bdafa21412e6"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a8cd0867cc21f034ce965bdafa21412e6">ignite::cache::query::SqlQuery::ClearArguments</a></div><div class="ttdeci">void ClearArguments()</div><div class="ttdoc">Remove all added arguments. </div><div class="ttdef"><b>Definition:</b> query_sql.h:250</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html">ignite::cache::query::SqlQuery</a></div><div class="ttdoc">Sql query. </div><div class="ttdef"><b>Definition:</b> query_sql.h:42</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryRawWriter_html_a7b9237e03749f5e27d57d6a926ba49b2"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawWriter.html#a7b9237e03749f5e27d57d6a926ba49b2">ignite::binary::BinaryRawWriter::WriteString</a></div><div class="ttdeci">void WriteString(const char *val)</div><div class="ttdoc">Write string. </div><div class="ttdef"><b>Definition:</b> binary_raw_writer.cpp:152</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_aadf500528211e00a43cf7b87c0d0051f"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aadf500528211e00a43cf7b87c0d0051f">ignite::cache::query::SqlQuery::SetPageSize</a></div><div class="ttdeci">void SetPageSize(int32_t pageSize)</div><div class="ttdoc">Set page size. </div><div class="ttdef"><b>Definition:</b> query_sql.h:184</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a907b6e4a5c4ea7ca6f80a3b687091f22"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a907b6e4a5c4ea7ca6f80a3b687091f22">ignite::cache::query::SqlQuery::SetLocal</a></div><div class="ttdeci">void SetLocal(bool loc)</div><div class="ttdoc">Set local flag. </div><div class="ttdef"><b>Definition:</b> query_sql.h:204</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a46418efabfbd47e30eb7da4913d56714"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a46418efabfbd47e30eb7da4913d56714">ignite::cache::query::SqlQuery::Write</a></div><div class="ttdeci">void Write(binary::BinaryRawWriter &writer) const </div><div class="ttdoc">Write query info to the stream. </div><div class="ttdef"><b>Definition:</b> query_sql.h:264</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a3f4ebe6458b881817a9836bf3dcde00b"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a3f4ebe6458b881817a9836bf3dcde00b">ignite::cache::query::SqlQuery::GetType</a></div><div class="ttdeci">const std::string & GetType() const </div><div class="ttdoc">Get type name. </div><div class="ttdef"><b>Definition:</b> query_sql.h:134</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_ac34061593b2169d3ccd45c0d70460898"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac34061593b2169d3ccd45c0d70460898">ignite::cache::query::SqlQuery::IsDistributedJoins</a></div><div class="ttdeci">bool IsDistributedJoins() const </div><div class="ttdoc">Check if distributed joins are enabled for this query. </div><div class="ttdef"><b>Definition:</b> query_sql.h:214</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryRawWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawWriter.html">ignite::binary::BinaryRawWriter</a></div><div class="ttdoc">Binary raw writer. </div><div class="ttdef"><b>Definition:</b> binary_raw_writer.h:55</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_aa4e9e9a79ea5ddbf8c8c0aada68f3b6d"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aa4e9e9a79ea5ddbf8c8c0aada68f3b6d">ignite::cache::query::SqlQuery::SetSql</a></div><div class="ttdeci">void SetSql(const std::string &sql)</div><div class="ttdoc">Set SQL string. </div><div class="ttdef"><b>Definition:</b> query_sql.h:164</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a5609ce4f4005383181bf24c0768a7846"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5609ce4f4005383181bf24c0768a7846">ignite::cache::query::SqlQuery::SetType</a></div><div class="ttdeci">void SetType(const std::string &type)</div><div class="ttdoc">Set type name. </div><div class="ttdef"><b>Definition:</b> query_sql.h:144</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_ac12b5dbd6439fe7f50d6eb86c06a06ea"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#ac12b5dbd6439fe7f50d6eb86c06a06ea">ignite::cache::query::SqlQuery::AddArgument</a></div><div class="ttdeci">void AddArgument(const T &arg)</div><div class="ttdoc">Add argument. </div><div class="ttdef"><b>Definition:</b> query_sql.h:242</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryRawWriter_html_a2d7c6d2302b55a1bc4e249d19a72ec1b"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawWriter.html#a2d7c6d2302b55a1bc4e249d19a72ec1b">ignite::binary::BinaryRawWriter::WriteBool</a></div><div class="ttdeci">void WriteBool(bool val)</div><div class="ttdoc">Write bool. </div><div class="ttdef"><b>Definition:</b> binary_raw_writer.cpp:42</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a40cd1d0067d70c99c773deb335af146e"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a40cd1d0067d70c99c773deb335af146e">ignite::cache::query::SqlQuery::IsLocal</a></div><div class="ttdeci">bool IsLocal() const </div><div class="ttdoc">Get local flag. </div><div class="ttdef"><b>Definition:</b> query_sql.h:194</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a5591e0ffb6e596985bc9fc575d838c89"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a5591e0ffb6e596985bc9fc575d838c89">ignite::cache::query::SqlQuery::Swap</a></div><div class="ttdeci">void Swap(SqlQuery &other)</div><div class="ttdoc">Efficiently swaps contents with another SqlQuery instance. </div><div class="ttdef"><b>Definition:</b> query_sql.h:116</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_afd18d1a83311dc68fe37629846849bc1"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#afd18d1a83311dc68fe37629846849bc1">ignite::cache::query::SqlQuery::SqlQuery</a></div><div class="ttdeci">SqlQuery(const SqlQuery &other)</div><div class="ttdoc">Copy constructor. </div><div class="ttdef"><b>Definition:</b> query_sql.h:67</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_af486d65c8b0004ec7fb1633b1400c986"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#af486d65c8b0004ec7fb1633b1400c986">ignite::cache::query::SqlQuery::~SqlQuery</a></div><div class="ttdeci">~SqlQuery()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> query_sql.h:103</div></div> |
| <div class="ttc" id="namespaceignite_html"><div class="ttname"><a href="namespaceignite.html">ignite</a></div><div class="ttdoc">Apache Ignite API. </div><div class="ttdef"><b>Definition:</b> cache.h:48</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_a6e71945c77c452409df15162414a5c58"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#a6e71945c77c452409df15162414a5c58">ignite::cache::query::SqlQuery::GetSql</a></div><div class="ttdeci">const std::string & GetSql() const </div><div class="ttdoc">Get SQL string. </div><div class="ttdef"><b>Definition:</b> query_sql.h:154</div></div> |
| <div class="ttc" id="classignite_1_1cache_1_1query_1_1SqlQuery_html_aaa012e38597bf19751ebfb44642d1eec"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1SqlQuery.html#aaa012e38597bf19751ebfb44642d1eec">ignite::cache::query::SqlQuery::SqlQuery</a></div><div class="ttdeci">SqlQuery(const std::string &type, const std::string &sql)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> query_sql.h:51</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Fri Nov 30 2018 20:09:21 for Apache Ignite C++ by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.11 |
| </small></address> |
| </body> |
| </html> |