blob: 7a4599fe3d65ce03293de0bf1cd2550b03423dc7 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>&nbsp; Apache Ignite C++: query_cursor.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>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</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">&nbsp; Apache Ignite C++
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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_cursor.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="query__cursor_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>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<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>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<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>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<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>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#ifndef _IGNITE_CACHE_QUERY_QUERY_CURSOR</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define _IGNITE_CACHE_QUERY_QUERY_CURSOR</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ignite/common/concurrent.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ignite__error_8h.html">ignite/ignite_error.h</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cache__entry_8h.html">ignite/cache/cache_entry.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &quot;ignite/impl/cache/query/query_impl.h&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;ignite/impl/operations.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;{</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">namespace </span>cache</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">namespace </span>query</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html"> 54</a></span>&#160; <span class="keyword">class </span><a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html">QueryCursor</a></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; {</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a23f71bdcccc38d2d9f6eeeaa4d635714"> 63</a></span>&#160; <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a23f71bdcccc38d2d9f6eeeaa4d635714">QueryCursor</a>() : impl(0)</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="comment">// No-op.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a877e4922adbdfb8fb3d20bcec351ea35"> 75</a></span>&#160; <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a877e4922adbdfb8fb3d20bcec351ea35">QueryCursor</a>(impl::cache::query::QueryCursorImpl* impl) : impl(impl)</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// No-op.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a901f70ae82074313f724edf959b1e515"> 89</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a901f70ae82074313f724edf959b1e515">HasNext</a>()</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a> err;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordtype">bool</span> res = <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a901f70ae82074313f724edf959b1e515">HasNext</a>(err);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="classignite_1_1IgniteError.html#a99e9d86e40876885459a86276eccb935">IgniteError::ThrowIfNeeded</a>(err);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; }</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#af7a18c4192ee1d87fc2bbf9f09182963"> 110</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#af7a18c4192ee1d87fc2bbf9f09182963">HasNext</a>(<a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>&amp; err)</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; impl::cache::query::QueryCursorImpl* impl0 = impl.Get();</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">if</span> (impl0)</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">return</span> impl0-&gt;HasNext(err);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; {</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; err = <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>(<a class="code" href="classignite_1_1IgniteError.html#abee4f1ca9ade2b8b4d0af780feea2577">IgniteError::IGNITE_ERR_GENERIC</a>, </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="stringliteral">&quot;Instance is not usable (did you check for error?).&quot;</span>);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; }</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ab4e4f4e30437d379551aa8c652a99adf"> 134</a></span>&#160; <a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ab4e4f4e30437d379551aa8c652a99adf">GetNext</a>()</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a> err;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a> res = <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ab4e4f4e30437d379551aa8c652a99adf">GetNext</a>(err);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="classignite_1_1IgniteError.html#a99e9d86e40876885459a86276eccb935">IgniteError::ThrowIfNeeded</a>(err);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#aac93dee2ff95426ac8e5573685181589"> 156</a></span>&#160; <a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#aac93dee2ff95426ac8e5573685181589">GetNext</a>(<a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>&amp; err)</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; {</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; impl::cache::query::QueryCursorImpl* impl0 = impl.Get();</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">if</span> (impl0) {</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; K key;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; V val;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; impl::Out2Operation&lt;K, V&gt; outOp(key, val);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; impl0-&gt;GetNext(outOp, err);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a>(key, val);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; }</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; {</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; err = <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>(<a class="code" href="classignite_1_1IgniteError.html#abee4f1ca9ade2b8b4d0af780feea2577">IgniteError::IGNITE_ERR_GENERIC</a>,</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="stringliteral">&quot;Instance is not usable (did you check for error?).&quot;</span>);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a>();</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; }</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; }</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ae9ddd4b5f19be9c465cac942244187ca"> 188</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ae9ddd4b5f19be9c465cac942244187ca">GetAll</a>(std::vector&lt;<a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a> &gt;&amp; res)</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; {</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a> err;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ae9ddd4b5f19be9c465cac942244187ca">GetAll</a>(res, err);</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="classignite_1_1IgniteError.html#a99e9d86e40876885459a86276eccb935">IgniteError::ThrowIfNeeded</a>(err);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#adffa4b2a7034b8ea5307487bf91104b9"> 206</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#adffa4b2a7034b8ea5307487bf91104b9">GetAll</a>(std::vector&lt;<a class="code" href="classignite_1_1cache_1_1CacheEntry.html">CacheEntry&lt;K, V&gt;</a> &gt;&amp; res, <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>&amp; err)</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; {</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; impl::cache::query::QueryCursorImpl* impl0 = impl.Get();</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keywordflow">if</span> (impl0) {</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; impl::OutQueryGetAllOperation&lt;K, V&gt; outOp(res);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; impl0-&gt;GetAll(outOp, err);</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; }</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; err = <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>(<a class="code" href="classignite_1_1IgniteError.html#abee4f1ca9ade2b8b4d0af780feea2577">IgniteError::IGNITE_ERR_GENERIC</a>,</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="stringliteral">&quot;Instance is not usable (did you check for error?).&quot;</span>);</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; }</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> OutIter&gt;</div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a094549bf6b153a23315fe82099ff2596"> 228</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a094549bf6b153a23315fe82099ff2596">GetAll</a>(OutIter iter)</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; {</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; impl::cache::query::QueryCursorImpl* impl0 = impl.Get();</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <span class="keywordflow">if</span> (impl0) {</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; impl::OutQueryGetAllOperationIter&lt;K, V, OutIter&gt; outOp(iter);</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; impl0-&gt;GetAll(outOp);</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; }</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; {</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classignite_1_1IgniteError.html">IgniteError</a>(<a class="code" href="classignite_1_1IgniteError.html#abee4f1ca9ade2b8b4d0af780feea2577">IgniteError::IGNITE_ERR_GENERIC</a>,</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="stringliteral">&quot;Instance is not usable (did you check for error?).&quot;</span>);</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; }</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; }</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#addab3ffd899c62ef04392db7de01a7a4"> 255</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1cache_1_1query_1_1QueryCursor.html#addab3ffd899c62ef04392db7de01a7a4">IsValid</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="keywordflow">return</span> impl.IsValid();</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; }</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; ignite::common::concurrent::SharedPointer&lt;impl::cache::query::QueryCursorImpl&gt; impl;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; };</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; }</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; } </div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;}</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;<span class="preprocessor">#endif //_IGNITE_CACHE_QUERY_QUERY_CURSOR</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceignite_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="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_ae9ddd4b5f19be9c465cac942244187ca"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ae9ddd4b5f19be9c465cac942244187ca">ignite::cache::query::QueryCursor::GetAll</a></div><div class="ttdeci">void GetAll(std::vector&lt; CacheEntry&lt; K, V &gt; &gt; &amp;res)</div><div class="ttdoc">Get all entries.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:188</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_a901f70ae82074313f724edf959b1e515"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a901f70ae82074313f724edf959b1e515">ignite::cache::query::QueryCursor::HasNext</a></div><div class="ttdeci">bool HasNext()</div><div class="ttdoc">Check whether next entry exists.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:89</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1CacheEntry_html"><div class="ttname"><a href="classignite_1_1cache_1_1CacheEntry.html">ignite::cache::CacheEntry</a></div><div class="ttdoc">Cache entry class template.</div><div class="ttdef"><b>Definition:</b> cache_entry.h:40</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html">ignite::cache::query::QueryCursor</a></div><div class="ttdoc">Query cursor class template.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:54</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_a877e4922adbdfb8fb3d20bcec351ea35"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a877e4922adbdfb8fb3d20bcec351ea35">ignite::cache::query::QueryCursor::QueryCursor</a></div><div class="ttdeci">QueryCursor(impl::cache::query::QueryCursorImpl *impl)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:75</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_ab4e4f4e30437d379551aa8c652a99adf"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#ab4e4f4e30437d379551aa8c652a99adf">ignite::cache::query::QueryCursor::GetNext</a></div><div class="ttdeci">CacheEntry&lt; K, V &gt; GetNext()</div><div class="ttdoc">Get next entry.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:134</div></div>
<div class="ttc" id="aclassignite_1_1IgniteError_html_abee4f1ca9ade2b8b4d0af780feea2577"><div class="ttname"><a href="classignite_1_1IgniteError.html#abee4f1ca9ade2b8b4d0af780feea2577">ignite::IgniteError::IGNITE_ERR_GENERIC</a></div><div class="ttdeci">static const int IGNITE_ERR_GENERIC</div><div class="ttdoc">Generic Ignite error.</div><div class="ttdef"><b>Definition:</b> ignite_error.h:131</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_a094549bf6b153a23315fe82099ff2596"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a094549bf6b153a23315fe82099ff2596">ignite::cache::query::QueryCursor::GetAll</a></div><div class="ttdeci">void GetAll(OutIter iter)</div><div class="ttdoc">Get all entries.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:228</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_addab3ffd899c62ef04392db7de01a7a4"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#addab3ffd899c62ef04392db7de01a7a4">ignite::cache::query::QueryCursor::IsValid</a></div><div class="ttdeci">bool IsValid() const</div><div class="ttdoc">Check if the instance is valid.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:255</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_aac93dee2ff95426ac8e5573685181589"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#aac93dee2ff95426ac8e5573685181589">ignite::cache::query::QueryCursor::GetNext</a></div><div class="ttdeci">CacheEntry&lt; K, V &gt; GetNext(IgniteError &amp;err)</div><div class="ttdoc">Get next entry.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:156</div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_adffa4b2a7034b8ea5307487bf91104b9"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#adffa4b2a7034b8ea5307487bf91104b9">ignite::cache::query::QueryCursor::GetAll</a></div><div class="ttdeci">void GetAll(std::vector&lt; CacheEntry&lt; K, V &gt; &gt; &amp;res, IgniteError &amp;err)</div><div class="ttdoc">Get all entries.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:206</div></div>
<div class="ttc" id="aclassignite_1_1IgniteError_html_a99e9d86e40876885459a86276eccb935"><div class="ttname"><a href="classignite_1_1IgniteError.html#a99e9d86e40876885459a86276eccb935">ignite::IgniteError::ThrowIfNeeded</a></div><div class="ttdeci">static void ThrowIfNeeded(const IgniteError &amp;err)</div><div class="ttdoc">Throw an error if code is not IGNITE_SUCCESS.</div><div class="ttdef"><b>Definition:</b> ignite_error.cpp:27</div></div>
<div class="ttc" id="acache__entry_8h_html"><div class="ttname"><a href="cache__entry_8h.html">cache_entry.h</a></div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_a23f71bdcccc38d2d9f6eeeaa4d635714"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#a23f71bdcccc38d2d9f6eeeaa4d635714">ignite::cache::query::QueryCursor::QueryCursor</a></div><div class="ttdeci">QueryCursor()</div><div class="ttdoc">Default constructor.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:63</div></div>
<div class="ttc" id="aignite__error_8h_html"><div class="ttname"><a href="ignite__error_8h.html">ignite_error.h</a></div></div>
<div class="ttc" id="aclassignite_1_1cache_1_1query_1_1QueryCursor_html_af7a18c4192ee1d87fc2bbf9f09182963"><div class="ttname"><a href="classignite_1_1cache_1_1query_1_1QueryCursor.html#af7a18c4192ee1d87fc2bbf9f09182963">ignite::cache::query::QueryCursor::HasNext</a></div><div class="ttdeci">bool HasNext(IgniteError &amp;err)</div><div class="ttdoc">Check whether next entry exists.</div><div class="ttdef"><b>Definition:</b> query_cursor.h:110</div></div>
<div class="ttc" id="aclassignite_1_1IgniteError_html"><div class="ttname"><a href="classignite_1_1IgniteError.html">ignite::IgniteError</a></div><div class="ttdoc">Ignite error information.</div><div class="ttdef"><b>Definition:</b> ignite_error.h:94</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 10 2022 11:02:04 for &nbsp; Apache Ignite C++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>