blob: b7012cea57a78c8cc5cee7482dbc80968fc82237 [file] [log] [blame]
<!-- 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/common/partial_row.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&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>include/kudu/common/partial_row.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">// &quot;License&quot;); 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">// &quot;AS IS&quot; 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_COMMON_PARTIAL_ROW_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define KUDU_COMMON_PARTIAL_ROW_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifdef KUDU_HEADERS_NO_STUBS</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#include &quot;kudu/gutil/macros.h&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;kudu/gutil/port.h&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;gtest/gtest_prod.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#else</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="comment">// This is a poor module interdependency, but the stubs are header-only and</span>
<a name="l00030"></a>00030 <span class="comment">// it&apos;s only for exported header builds, so we&apos;ll make an exception.</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;kudu/client/stubs.h&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;kudu/util/kudu_export.h&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;kudu/util/slice.h&quot;</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">namespace </span>kudu {
<a name="l00038"></a>00038 <span class="keyword">class </span>ColumnSchema;
<a name="l00039"></a>00039 <span class="keyword">namespace </span>client {
<a name="l00040"></a>00040 <span class="keyword">class </span>KuduWriteOperation;
<a name="l00041"></a>00041 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> KeyTypeWrapper&gt; <span class="keyword">struct </span>SliceKeysTestSetup;
<a name="l00042"></a>00042 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> KeyTypeWrapper&gt; <span class="keyword">struct </span>IntKeysTestSetup;
<a name="l00043"></a>00043 } <span class="comment">// namespace client</span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="keyword">class </span>Schema;
<a name="l00046"></a>00046 <span class="keyword">class </span>PartialRowPB;
<a name="l00047"></a>00047
<a name="l00053"></a><a class="code" href="classkudu_1_1KuduPartialRow.html">00053</a> <span class="keyword">class </span>KUDU_EXPORT <a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a> {
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00058"></a>00058 <span class="keyword">explicit</span> <a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a>(<span class="keyword">const</span> Schema* schema);
<a name="l00059"></a>00059
<a name="l00060"></a>00060 <span class="keyword">virtual</span> ~<a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a>();
<a name="l00061"></a>00061
<a name="l00066"></a>00066 <a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a>(<span class="keyword">const</span> <a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a>&amp; other);
<a name="l00067"></a>00067
<a name="l00073"></a>00073 <a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a>&amp; operator=(<a class="code" href="classkudu_1_1KuduPartialRow.html" title="A row which may only contain values for a subset of the columns.">KuduPartialRow</a> other);
<a name="l00074"></a>00074
<a name="l00086"></a>00086 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBool(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keywordtype">bool</span> val) WARN_UNUSED_RESULT;
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt8(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, int8_t val) WARN_UNUSED_RESULT;
<a name="l00089"></a>00089 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt16(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, int16_t val) WARN_UNUSED_RESULT;
<a name="l00090"></a>00090 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt32(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, int32_t val) WARN_UNUSED_RESULT;
<a name="l00091"></a>00091 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt64(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, int64_t val) WARN_UNUSED_RESULT;
<a name="l00092"></a>00092 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetUnixTimeMicros(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name,
<a name="l00093"></a>00093 int64_t micros_since_utc_epoch) WARN_UNUSED_RESULT;
<a name="l00094"></a>00094
<a name="l00095"></a>00095 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetFloat(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keywordtype">float</span> val) WARN_UNUSED_RESULT;
<a name="l00096"></a>00096 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetDouble(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keywordtype">double</span> val) WARN_UNUSED_RESULT;
<a name="l00098"></a>00098
<a name="l00115"></a>00115 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBool(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">bool</span> val) WARN_UNUSED_RESULT;
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt8(<span class="keywordtype">int</span> col_idx, int8_t val) WARN_UNUSED_RESULT;
<a name="l00118"></a>00118 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt16(<span class="keywordtype">int</span> col_idx, int16_t val) WARN_UNUSED_RESULT;
<a name="l00119"></a>00119 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt32(<span class="keywordtype">int</span> col_idx, int32_t val) WARN_UNUSED_RESULT;
<a name="l00120"></a>00120 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetInt64(<span class="keywordtype">int</span> col_idx, int64_t val) WARN_UNUSED_RESULT;
<a name="l00121"></a>00121 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetUnixTimeMicros(<span class="keywordtype">int</span> col_idx, int64_t micros_since_utc_epoch) WARN_UNUSED_RESULT;
<a name="l00122"></a>00122
<a name="l00123"></a>00123 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetFloat(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">float</span> val) WARN_UNUSED_RESULT;
<a name="l00124"></a>00124 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetDouble(<span class="keywordtype">int</span> col_idx, <span class="keywordtype">double</span> val) WARN_UNUSED_RESULT;
<a name="l00126"></a>00126
<a name="l00144"></a>00144 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinary(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00145"></a>00145 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetString(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00147"></a>00147
<a name="l00170"></a>00170 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinary(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00171"></a>00171 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetString(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00173"></a>00173
<a name="l00186"></a>00186 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinaryCopy(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00187"></a>00187 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetStringCopy(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00189"></a>00189
<a name="l00207"></a>00207 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetStringCopy(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00208"></a>00208 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinaryCopy(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00210"></a>00210
<a name="l00228"></a>00228 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinaryNoCopy(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00229"></a>00229 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetStringNoCopy(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00231"></a>00231
<a name="l00254"></a>00254 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetBinaryNoCopy(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00255"></a>00255 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetStringNoCopy(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val) WARN_UNUSED_RESULT;
<a name="l00257"></a>00257
<a name="l00266"></a>00266 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetNull(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name) WARN_UNUSED_RESULT;
<a name="l00267"></a>00267
<a name="l00276"></a>00276 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetNull(<span class="keywordtype">int</span> col_idx) WARN_UNUSED_RESULT;
<a name="l00277"></a>00277
<a name="l00285"></a>00285 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> Unset(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name) WARN_UNUSED_RESULT;
<a name="l00286"></a>00286
<a name="l00294"></a>00294 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> Unset(<span class="keywordtype">int</span> col_idx) WARN_UNUSED_RESULT;
<a name="l00295"></a>00295
<a name="l00301"></a>00301 <span class="keywordtype">bool</span> IsColumnSet(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name) <span class="keyword">const</span>;
<a name="l00302"></a>00302
<a name="l00308"></a>00308 <span class="keywordtype">bool</span> IsColumnSet(<span class="keywordtype">int</span> col_idx) <span class="keyword">const</span>;
<a name="l00309"></a>00309
<a name="l00315"></a>00315 <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>&amp; col_name) <span class="keyword">const</span>;
<a name="l00316"></a>00316
<a name="l00322"></a>00322 <span class="keywordtype">bool</span> IsNull(<span class="keywordtype">int</span> col_idx) <span class="keyword">const</span>;
<a name="l00323"></a>00323
<a name="l00335"></a>00335 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, <span class="keywordtype">bool</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00336"></a>00336
<a name="l00337"></a>00337 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, int8_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00338"></a>00338 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, int16_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00339"></a>00339 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, int32_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00340"></a>00340 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, int64_t* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00341"></a>00341 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name,
<a name="l00342"></a>00342 int64_t* micros_since_utc_epoch) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00343"></a>00343
<a name="l00344"></a>00344 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, <span class="keywordtype">float</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00345"></a>00345 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, <span class="keywordtype">double</span>* val) <span class="keyword">const</span> WARN_UNUSED_RESULT;
<a name="l00347"></a>00347
<a name="l00366"></a>00366 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00367"></a>00367
<a name="l00368"></a>00368 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00369"></a>00369 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00370"></a>00370 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00371"></a>00371 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00372"></a>00372 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00373"></a>00373
<a name="l00374"></a>00374 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00375"></a>00375 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00377"></a>00377
<a name="l00395"></a>00395 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; 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="l00396"></a>00396 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; 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="l00398"></a>00398
<a name="l00420"></a>00420 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00421"></a>00421 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00423"></a>00423
<a name="l00424"></a>00424 <span class="comment">//------------------------------------------------------------</span>
<a name="l00425"></a>00425 <span class="comment">// Key-encoding related functions</span>
<a name="l00426"></a>00426 <span class="comment">//------------------------------------------------------------</span>
<a name="l00427"></a>00427
<a name="l00439"></a>00439 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> EncodeRowKey(std::string* encoded_key) <span class="keyword">const</span>;
<a name="l00440"></a>00440
<a name="l00447"></a>00447 std::string ToEncodedRowKeyOrDie() <span class="keyword">const</span>;
<a name="l00448"></a>00448
<a name="l00449"></a>00449 <span class="comment">//------------------------------------------------------------</span>
<a name="l00450"></a>00450 <span class="comment">// Utility code</span>
<a name="l00451"></a>00451 <span class="comment">//------------------------------------------------------------</span>
<a name="l00452"></a>00452
<a name="l00455"></a>00455 <span class="keywordtype">bool</span> IsKeySet() <span class="keyword">const</span>;
<a name="l00456"></a>00456
<a name="l00458"></a>00458 <span class="keywordtype">bool</span> AllColumnsSet() <span class="keyword">const</span>;
<a name="l00459"></a>00459
<a name="l00461"></a>00461 std::string ToString() <span class="keyword">const</span>;
<a name="l00462"></a>00462
<a name="l00464"></a><a class="code" href="classkudu_1_1KuduPartialRow.html#a7e86b0d6683e9bfdf5c9b2a5bcaab745">00464</a> <span class="keyword">const</span> Schema* <a class="code" href="classkudu_1_1KuduPartialRow.html#a7e86b0d6683e9bfdf5c9b2a5bcaab745">schema</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> schema_; }
<a name="l00465"></a>00465
<a name="l00466"></a>00466 <span class="keyword">private</span>:
<a name="l00467"></a>00467 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classkudu_1_1client_1_1KuduWriteOperation.html" title="A single-row write operation to be sent to a Kudu table.">client::KuduWriteOperation</a>; <span class="comment">// for row_data_.</span>
<a name="l00468"></a>00468 <span class="keyword">friend</span> <span class="keyword">class </span>KeyUtilTest;
<a name="l00469"></a>00469 <span class="keyword">friend</span> <span class="keyword">class </span>PartitionSchema;
<a name="l00470"></a>00470 <span class="keyword">friend</span> <span class="keyword">class </span>RowOperationsPBDecoder;
<a name="l00471"></a>00471 <span class="keyword">friend</span> <span class="keyword">class </span>RowOperationsPBEncoder;
<a name="l00472"></a>00472 <span class="keyword">friend</span> <span class="keyword">class </span>TestScanSpec;
<a name="l00473"></a>00473 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> KeyTypeWrapper&gt; <span class="keyword">friend</span> <span class="keyword">struct </span>client::SliceKeysTestSetup;
<a name="l00474"></a>00474 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> KeyTypeWrapper&gt; <span class="keyword">friend</span> <span class="keyword">struct </span>client::IntKeysTestSetup;
<a name="l00475"></a>00475 FRIEND_TEST(TestPartitionPruner, TestPrimaryKeyRangePruning);
<a name="l00476"></a>00476 FRIEND_TEST(TestPartitionPruner, TestPartialPrimaryKeyRangePruning);
<a name="l00477"></a>00477
<a name="l00478"></a>00478 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00479"></a>00479 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> Set(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <span class="keyword">typename</span> T::cpp_type&amp; val,
<a name="l00480"></a>00480 <span class="keywordtype">bool</span> owned = <span class="keyword">false</span>);
<a name="l00481"></a>00481
<a name="l00482"></a>00482 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00483"></a>00483 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> Set(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <span class="keyword">typename</span> T::cpp_type&amp; val,
<a name="l00484"></a>00484 <span class="keywordtype">bool</span> owned = <span class="keyword">false</span>);
<a name="l00485"></a>00485
<a name="l00486"></a>00486 <span class="comment">// Runtime version of the generic setter.</span>
<a name="l00487"></a>00487 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> Set(int32_t column_idx, <span class="keyword">const</span> uint8_t* val);
<a name="l00488"></a>00488
<a name="l00489"></a>00489 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00490"></a>00490 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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>&amp; col_name, <span class="keyword">typename</span> T::cpp_type* val) <span class="keyword">const</span>;
<a name="l00491"></a>00491
<a name="l00492"></a>00492 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00493"></a>00493 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#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="l00494"></a>00494
<a name="l00495"></a>00495 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00496"></a>00496 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetSliceCopy(<span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; col_name, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val);
<a name="l00497"></a>00497
<a name="l00498"></a>00498 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00499"></a>00499 <a class="code" href="classkudu_1_1Status.html" title="A representation of an operation&amp;#39;s outcome.">Status</a> SetSliceCopy(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> <a class="code" href="classkudu_1_1Slice.html" title="A wrapper around externally allocated data.">Slice</a>&amp; val);
<a name="l00500"></a>00500
<a name="l00501"></a>00501 <span class="comment">// If the given column is a variable length column whose memory is owned by this instance,</span>
<a name="l00502"></a>00502 <span class="comment">// deallocates the value.</span>
<a name="l00503"></a>00503 <span class="comment">// NOTE: Does not mutate the isset bitmap.</span>
<a name="l00504"></a>00504 <span class="comment">// REQUIRES: col_idx must be a variable length column.</span>
<a name="l00505"></a>00505 <span class="keywordtype">void</span> DeallocateStringIfSet(<span class="keywordtype">int</span> col_idx, <span class="keyword">const</span> ColumnSchema&amp; col);
<a name="l00506"></a>00506
<a name="l00507"></a>00507 <span class="comment">// Deallocate any string/binary values whose memory is managed by this object.</span>
<a name="l00508"></a>00508 <span class="keywordtype">void</span> DeallocateOwnedStrings();
<a name="l00509"></a>00509
<a name="l00510"></a>00510 <span class="keyword">const</span> Schema* schema_;
<a name="l00511"></a>00511
<a name="l00512"></a>00512 <span class="comment">// 1-bit set for any field which has been explicitly set. This is distinct</span>
<a name="l00513"></a>00513 <span class="comment">// from NULL -- an &quot;unset&quot; field will take the server-side default on insert,</span>
<a name="l00514"></a>00514 <span class="comment">// whereas a field explicitly set to NULL will override the default.</span>
<a name="l00515"></a>00515 uint8_t* isset_bitmap_;
<a name="l00516"></a>00516
<a name="l00517"></a>00517 <span class="comment">// 1-bit set for any variable length columns whose memory is managed by this instance.</span>
<a name="l00518"></a>00518 <span class="comment">// These strings need to be deallocated whenever the value is reset,</span>
<a name="l00519"></a>00519 <span class="comment">// or when the instance is destructed.</span>
<a name="l00520"></a>00520 uint8_t* owned_strings_bitmap_;
<a name="l00521"></a>00521
<a name="l00522"></a>00522 <span class="comment">// The normal &quot;contiguous row&quot; format row data. Any column whose data is unset</span>
<a name="l00523"></a>00523 <span class="comment">// or NULL can have undefined bytes.</span>
<a name="l00524"></a>00524 uint8_t* row_data_;
<a name="l00525"></a>00525 };
<a name="l00526"></a>00526
<a name="l00527"></a>00527 } <span class="comment">// namespace kudu</span>
<a name="l00528"></a>00528 <span class="preprocessor">#endif </span><span class="comment">/* KUDU_COMMON_PARTIAL_ROW_H */</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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</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>