| <!-- This comment will put IE 6, 7 and 8 in quirks mode --> |
| <!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> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <title>Kudu C++ client API: include/kudu/client/scan_batch.h Source File</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javaScript" src="search/search.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body onload='searchBox.OnSelectItem(0);'> |
| <!-- Generated by Doxygen 1.6.1 --> |
| <script type="text/javascript"><!-- |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| --></script> |
| <div class="navigation" id="top"> |
| <div class="tabs"> |
| <ul> |
| <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="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"> |
| <img id="MSearchSelect" src="search/search.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)"/> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </div> |
| </li> |
| </ul> |
| </div> |
| <div class="tabs"> |
| <ul> |
| <li><a href="files.html"><span>File List</span></a></li> |
| <li><a href="globals.html"><span>File Members</span></a></li> |
| </ul> |
| </div> |
| <h1>include/kudu/client/scan_batch.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span> |
| <a name="l00002"></a>00002 <span class="comment">// or more contributor license agreements. See the NOTICE file</span> |
| <a name="l00003"></a>00003 <span class="comment">// distributed with this work for additional information</span> |
| <a name="l00004"></a>00004 <span class="comment">// regarding copyright ownership. The ASF licenses this file</span> |
| <a name="l00005"></a>00005 <span class="comment">// to you under the Apache License, Version 2.0 (the</span> |
| <a name="l00006"></a>00006 <span class="comment">// "License"); you may not use this file except in compliance</span> |
| <a name="l00007"></a>00007 <span class="comment">// with the License. You may obtain a copy of the License at</span> |
| <a name="l00008"></a>00008 <span class="comment">//</span> |
| <a name="l00009"></a>00009 <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span> |
| <a name="l00010"></a>00010 <span class="comment">//</span> |
| <a name="l00011"></a>00011 <span class="comment">// Unless required by applicable law or agreed to in writing,</span> |
| <a name="l00012"></a>00012 <span class="comment">// software distributed under the License is distributed on an</span> |
| <a name="l00013"></a>00013 <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> |
| <a name="l00014"></a>00014 <span class="comment">// KIND, either express or implied. See the License for the</span> |
| <a name="l00015"></a>00015 <span class="comment">// specific language governing permissions and limitations</span> |
| <a name="l00016"></a>00016 <span class="comment">// under the License.</span> |
| <a name="l00017"></a>00017 <span class="preprocessor">#ifndef KUDU_CLIENT_SCAN_BATCH_H</span> |
| <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define KUDU_CLIENT_SCAN_BATCH_H</span> |
| <a name="l00019"></a>00019 <span class="preprocessor"></span> |
| <a name="l00020"></a>00020 <span class="preprocessor">#include <string></span> |
| <a name="l00021"></a>00021 |
| <a name="l00022"></a>00022 <span class="preprocessor">#ifdef KUDU_HEADERS_NO_STUBS</span> |
| <a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#include "kudu/gutil/macros.h"</span> |
| <a name="l00024"></a>00024 <span class="preprocessor">#include "kudu/gutil/port.h"</span> |
| <a name="l00025"></a>00025 <span class="preprocessor">#else</span> |
| <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include "kudu/client/stubs.h"</span> |
| <a name="l00027"></a>00027 <span class="preprocessor">#endif</span> |
| <a name="l00028"></a>00028 <span class="preprocessor"></span> |
| <a name="l00029"></a>00029 <span class="preprocessor">#include "kudu/util/kudu_export.h"</span> |
| <a name="l00030"></a>00030 <span class="preprocessor">#include "kudu/util/slice.h"</span> |
| <a name="l00031"></a>00031 |
| <a name="l00032"></a>00032 <span class="keyword">namespace </span>kudu { |
| <a name="l00033"></a>00033 <span class="keyword">class </span>Schema; |
| <a name="l00034"></a>00034 |
| <a name="l00035"></a>00035 <span class="keyword">namespace </span>tools { |
| <a name="l00036"></a>00036 <span class="keyword">class </span>ReplicaDumper; |
| <a name="l00037"></a>00037 } <span class="comment">// namespace tools</span> |
| <a name="l00038"></a>00038 |
| <a name="l00039"></a>00039 <span class="keyword">namespace </span>client { |
| <a name="l00040"></a>00040 <span class="keyword">class </span>KuduSchema; |
| <a name="l00041"></a>00041 |
| <a name="l00075"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html">00075</a> <span class="keyword">class </span>KUDU_EXPORT <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a> { |
| <a name="l00076"></a>00076 <span class="keyword">public</span>: |
| <a name="l00081"></a>00081 <span class="keyword">class </span>RowPtr; |
| <a name="l00082"></a>00082 |
| <a name="l00089"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ae1a827120c84eeedb703451bd5782467">00089</a> <span class="keyword">class </span>const_iterator; |
| <a name="l00090"></a>00090 |
| <a name="l00092"></a>00092 <span class="keyword">typedef</span> RowPtr value_type; |
| <a name="l00093"></a>00093 |
| <a name="l00094"></a>00094 <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>(); |
| <a name="l00095"></a>00095 ~<a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>(); |
| <a name="l00096"></a>00096 |
| <a name="l00098"></a>00098 <span class="keywordtype">int</span> NumRows() <span class="keyword">const</span>; |
| <a name="l00099"></a>00099 |
| <a name="l00107"></a>00107 <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a92bbfa48e9b503181c2dfb5f11f14e4e">KuduScanBatch::RowPtr</a> Row(<span class="keywordtype">int</span> idx) <span class="keyword">const</span>; |
| <a name="l00108"></a>00108 |
| <a name="l00110"></a>00110 const_iterator begin() <span class="keyword">const</span>; |
| <a name="l00112"></a>00112 const_iterator end() <span class="keyword">const</span>; |
| <a name="l00113"></a>00113 |
| <a name="l00117"></a>00117 <span class="keyword">const</span> <a class="code" href="classkudu_1_1client_1_1KuduSchema.html" title="A representation of a table&#39;s schema.">KuduSchema</a>* projection_schema() <span class="keyword">const</span>; |
| <a name="l00118"></a>00118 |
| <a name="l00119"></a>00119 <span class="keyword">private</span>: |
| <a name="l00120"></a>00120 <span class="keyword">class </span>KUDU_NO_EXPORT Data; |
| <a name="l00121"></a>00121 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classkudu_1_1client_1_1KuduScanner.html" title="This class is a representation of a single scan.">KuduScanner</a>; |
| <a name="l00122"></a>00122 <span class="keyword">friend</span> <span class="keyword">class </span>tools::ReplicaDumper; |
| <a name="l00123"></a>00123 |
| <a name="l00124"></a>00124 Data* data_; |
| <a name="l00125"></a>00125 DISALLOW_COPY_AND_ASSIGN(<a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>); |
| <a name="l00126"></a>00126 }; |
| <a name="l00127"></a>00127 |
| <a name="l00128"></a>00128 <span class="keyword">class </span>KUDU_EXPORT <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>::RowPtr { |
| <a name="l00129"></a>00129 <span class="keyword">public</span>: |
| <a name="l00132"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a92bbfa48e9b503181c2dfb5f11f14e4e">00132</a> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a92bbfa48e9b503181c2dfb5f11f14e4e">RowPtr</a>() : schema_(NULL), row_data_(NULL) {} |
| <a name="l00133"></a>00133 |
| <a name="l00137"></a>00137 <span class="keywordtype">bool</span> IsNull(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name) <span class="keyword">const</span>; |
| <a name="l00138"></a>00138 |
| <a name="l00142"></a>00142 <span class="keywordtype">bool</span> IsNull(<span class="keywordtype">int</span> col_idx) <span class="keyword">const</span>; |
| <a name="l00143"></a>00143 |
| <a name="l00157"></a>00157 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetBool(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <span class="keywordtype">bool</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00158"></a>00158 |
| <a name="l00159"></a>00159 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt8(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, int8_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00160"></a>00160 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt16(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, int16_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00161"></a>00161 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt32(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, int32_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00162"></a>00162 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt64(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, int64_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00163"></a>00163 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetUnixTimeMicros(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, int64_t* micros_since_utc_epoch) |
| <a name="l00164"></a>00164 <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00165"></a>00165 |
| <a name="l00166"></a>00166 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetFloat(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <span class="keywordtype">float</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00167"></a>00167 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetDouble(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <span class="keywordtype">double</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00169"></a>00169 |
| <a name="l00188"></a>00188 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetBool(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">bool</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00189"></a>00189 |
| <a name="l00190"></a>00190 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt8(<span class="keywordtype">int</span> col_idx, int8_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00191"></a>00191 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt16(<span class="keywordtype">int</span> col_idx, int16_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00192"></a>00192 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt32(<span class="keywordtype">int</span> col_idx, int32_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00193"></a>00193 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetInt64(<span class="keywordtype">int</span> col_idx, int64_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00194"></a>00194 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetUnixTimeMicros(<span class="keywordtype">int</span> col_idx, int64_t* micros_since_utc_epoch) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00195"></a>00195 |
| <a name="l00196"></a>00196 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetFloat(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">float</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00197"></a>00197 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetDouble(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">double</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00199"></a>00199 |
| <a name="l00217"></a>00217 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetString(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00218"></a>00218 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetBinary(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00220"></a>00220 |
| <a name="l00242"></a>00242 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetString(<span class="keywordtype">int</span> col_idx, <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00243"></a>00243 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> GetBinary(<span class="keywordtype">int</span> col_idx, <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT; |
| <a name="l00245"></a>00245 |
| <a name="l00252"></a>00252 <span class="keyword">const</span> <span class="keywordtype">void</span>* cell(<span class="keywordtype">int</span> col_idx) <span class="keyword">const</span>; |
| <a name="l00253"></a>00253 |
| <a name="l00255"></a>00255 std::string ToString() <span class="keyword">const</span>; |
| <a name="l00256"></a>00256 |
| <a name="l00257"></a>00257 <span class="keyword">private</span>: |
| <a name="l00258"></a>00258 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>; |
| <a name="l00259"></a>00259 <span class="keyword">template</span><<span class="keyword">typename</span> KeyTypeWrapper> <span class="keyword">friend</span> <span class="keyword">struct </span>SliceKeysTestSetup; |
| <a name="l00260"></a>00260 <span class="keyword">template</span><<span class="keyword">typename</span> KeyTypeWrapper> <span class="keyword">friend</span> <span class="keyword">struct </span>IntKeysTestSetup; |
| <a name="l00261"></a>00261 |
| <a name="l00262"></a>00262 <span class="comment">// Only invoked by KuduScanner.</span> |
| <a name="l00263"></a>00263 RowPtr(<span class="keyword">const</span> Schema* schema, |
| <a name="l00264"></a>00264 <span class="keyword">const</span> uint8_t* row_data) |
| <a name="l00265"></a>00265 : schema_(schema), |
| <a name="l00266"></a>00266 row_data_(row_data) { |
| <a name="l00267"></a>00267 } |
| <a name="l00268"></a>00268 |
| <a name="l00269"></a>00269 <span class="keyword">template</span><<span class="keyword">typename</span> T> |
| <a name="l00270"></a>00270 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> Get(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>& col_name, <span class="keyword">typename</span> T::cpp_type* val) <span class="keyword">const</span>; |
| <a name="l00271"></a>00271 |
| <a name="l00272"></a>00272 <span class="keyword">template</span><<span class="keyword">typename</span> T> |
| <a name="l00273"></a>00273 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&#39;s outcome.">Status</a> Get(<span class="keywordtype">int</span> col_idx, <span class="keyword">typename</span> T::cpp_type* val) <span class="keyword">const</span>; |
| <a name="l00274"></a>00274 |
| <a name="l00275"></a>00275 <span class="keyword">const</span> Schema* schema_; |
| <a name="l00276"></a>00276 <span class="keyword">const</span> uint8_t* row_data_; |
| <a name="l00277"></a>00277 }; |
| <a name="l00278"></a>00278 |
| <a name="l00279"></a>00279 <span class="keyword">class </span>KUDU_EXPORT KuduScanBatch::const_iterator |
| <a name="l00280"></a>00280 : <span class="keyword">public</span> std::iterator<std::forward_iterator_tag, KuduScanBatch::RowPtr> { |
| <a name="l00281"></a>00281 <span class="keyword">public</span>: |
| <a name="l00282"></a>00282 ~const_iterator() {} |
| <a name="l00283"></a>00283 |
| <a name="l00285"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ab057b7b1bfb713a7e8f216e3b288cb10">00285</a> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a92bbfa48e9b503181c2dfb5f11f14e4e">KuduScanBatch::RowPtr</a> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ab057b7b1bfb713a7e8f216e3b288cb10">operator*</a>()<span class="keyword"> const </span>{ |
| <a name="l00286"></a>00286 <span class="keywordflow">return</span> batch_->Row(idx_); |
| <a name="l00287"></a>00287 } |
| <a name="l00288"></a>00288 |
| <a name="l00292"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ad5df483ed3172caab5a8d6a72abfad0c">00292</a> const_iterator& <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ad5df483ed3172caab5a8d6a72abfad0c">operator++</a>() { |
| <a name="l00293"></a>00293 ++idx_; |
| <a name="l00294"></a>00294 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
| <a name="l00295"></a>00295 } |
| <a name="l00296"></a>00296 |
| <a name="l00300"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a4b1ad47fd7d429859b6181825a063c48">00300</a> const_iterator <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a4b1ad47fd7d429859b6181825a063c48">operator++</a>(<span class="keywordtype">int</span>) { |
| <a name="l00301"></a>00301 const_iterator tmp(batch_, idx_); |
| <a name="l00302"></a>00302 ++idx_; |
| <a name="l00303"></a>00303 <span class="keywordflow">return</span> tmp; |
| <a name="l00304"></a>00304 } |
| <a name="l00305"></a>00305 |
| <a name="l00312"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a378a5844a4b4774056b26f0003c15048">00312</a> <span class="keywordtype">bool</span> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a378a5844a4b4774056b26f0003c15048">operator==</a>(<span class="keyword">const</span> const_iterator& other)<span class="keyword"> const </span>{ |
| <a name="l00313"></a>00313 <span class="keywordflow">return</span> (idx_ == other.idx_) && (batch_ == other.batch_); |
| <a name="l00314"></a>00314 } |
| <a name="l00315"></a>00315 |
| <a name="l00323"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#afd2b2c4cb038cbd366c2af8cf09a3a68">00323</a> <span class="keywordtype">bool</span> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#afd2b2c4cb038cbd366c2af8cf09a3a68">operator!=</a>(<span class="keyword">const</span> const_iterator& other)<span class="keyword"> const </span>{ |
| <a name="l00324"></a>00324 <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); |
| <a name="l00325"></a>00325 } |
| <a name="l00326"></a>00326 |
| <a name="l00327"></a>00327 <span class="keyword">private</span>: |
| <a name="l00328"></a>00328 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>; |
| <a name="l00329"></a>00329 const_iterator(<span class="keyword">const</span> <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html" title="A batch of zero or more rows returned by a scan operation.">KuduScanBatch</a>* b, <span class="keywordtype">int</span> idx) |
| <a name="l00330"></a>00330 : batch_(b), |
| <a name="l00331"></a>00331 idx_(idx) { |
| <a name="l00332"></a>00332 } |
| <a name="l00333"></a>00333 |
| <a name="l00334"></a>00334 <span class="keyword">const</span> KuduScanBatch* <span class="keyword">const</span> batch_; |
| <a name="l00335"></a>00335 <span class="keywordtype">int</span> idx_; |
| <a name="l00336"></a>00336 }; |
| <a name="l00337"></a>00337 |
| <a name="l00338"></a>00338 |
| <a name="l00339"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a30f55cf8f3c9d6fcb47537e586d82e9f">00339</a> <span class="keyword">inline</span> KuduScanBatch::const_iterator <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a30f55cf8f3c9d6fcb47537e586d82e9f">KuduScanBatch::begin</a>()<span class="keyword"> const </span>{ |
| <a name="l00340"></a>00340 <span class="keywordflow">return</span> const_iterator(<span class="keyword">this</span>, 0); |
| <a name="l00341"></a>00341 } |
| <a name="l00342"></a>00342 |
| <a name="l00343"></a><a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ad30dcfafb276b5347842882cf68cb522">00343</a> <span class="keyword">inline</span> KuduScanBatch::const_iterator <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#ad30dcfafb276b5347842882cf68cb522">KuduScanBatch::end</a>()<span class="keyword"> const </span>{ |
| <a name="l00344"></a>00344 <span class="keywordflow">return</span> const_iterator(<span class="keyword">this</span>, <a class="code" href="classkudu_1_1client_1_1KuduScanBatch.html#a16e45694c5932eb3decc2184c3834157">NumRows</a>()); |
| <a name="l00345"></a>00345 } |
| <a name="l00346"></a>00346 |
| <a name="l00347"></a>00347 } <span class="comment">// namespace client</span> |
| <a name="l00348"></a>00348 } <span class="comment">// namespace kudu</span> |
| <a name="l00349"></a>00349 |
| <a name="l00350"></a>00350 <span class="preprocessor">#endif</span> |
| </pre></div></div> |
| <!--- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <!-- start footer part --> |
| <hr class="footer"/> |
| <address class="footer"> |
| <small>Generated for Kudu version 1.0.1 on Tue Oct 11 08:52:01 2016 by Doxygen 1.6.1</small> |
| <br> |
| <small>Copyright © 2016 The Apache Software Foundation.</small> |
| </address> |
| </body> |
| </html> |