blob: a08d2aad8ee225d28670321ada7b867252a51b2e [file] [log] [blame]
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Impala: fe/src/main/java/com/cloudera/impala/hive/executor/ImpalaTextWritable.java 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">Impala
</div>
<div id="projectbrief">Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ImpalaTextWritable_8java_source.html','');});
</script>
<div id="doc-content">
<!-- 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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></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 class="header">
<div class="headertitle">
<div class="title">ImpalaTextWritable.java</div> </div>
</div><!--header-->
<div class="contents">
<a href="ImpalaTextWritable_8java.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">// Copyright 2012 Cloudera Inc.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</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">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</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="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">// limitations under the License.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">package </span>com.cloudera.impala.hive.executor;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">import</span> org.apache.hadoop.io.Text;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html"> 23</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html">ImpalaTextWritable</a> <span class="keyword">extends</span> Text {</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a6426a10e27ede90a09b3d50417244d40"> 24</a></span>&#160; <span class="keyword">private</span> <span class="keyword">final</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaStringWritable.html">ImpalaStringWritable</a> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a6426a10e27ede90a09b3d50417244d40">string_</a>;</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"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a8b1094836752caeb8d89b32a3053770a"> 26</a></span>&#160; <span class="keyword">public</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a8b1094836752caeb8d89b32a3053770a">ImpalaTextWritable</a>(<span class="keywordtype">long</span> ptr) {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a6426a10e27ede90a09b3d50417244d40">string_</a> = <span class="keyword">new</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaStringWritable.html">ImpalaStringWritable</a>(ptr);</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; }</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; @Override</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#acc7e6d3fc84c49183ce3c4aca4aaa441"> 31</a></span>&#160; <span class="keyword">public</span> String <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#acc7e6d3fc84c49183ce3c4aca4aaa441">toString</a>() { <span class="keywordflow">return</span> <span class="keyword">new</span> String(<a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a0d4785e83f00d2d81a10c4b501675192">getBytes</a>()); }</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; @Override</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a0d4785e83f00d2d81a10c4b501675192"> 33</a></span>&#160; <span class="keyword">public</span> byte[] <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a0d4785e83f00d2d81a10c4b501675192">getBytes</a>() { <span class="keywordflow">return</span> string_.getBytes(); }</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; @Override</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a3c820c65f956679e52d46712e02b9d74"> 35</a></span>&#160; <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a3c820c65f956679e52d46712e02b9d74">getLength</a>() { <span class="keywordflow">return</span> string_.getLength(); }</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"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#aee119798a38c3868adfc89166f1da5ec"> 37</a></span>&#160; <span class="keyword">public</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaStringWritable.html">ImpalaStringWritable</a> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#aee119798a38c3868adfc89166f1da5ec">getStringWritable</a>() { <span class="keywordflow">return</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a6426a10e27ede90a09b3d50417244d40">string_</a>; }</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; @Override</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#afc7653960534f47b7dafeeb5c98d1c48"> 40</a></span>&#160; <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#afc7653960534f47b7dafeeb5c98d1c48">set</a>(byte[] v, <span class="keywordtype">int</span> <a class="code" href="partitioning-throughput-test_8cc.html#ad172ecfd5c31c5df6282c2b4bc322bf7">offset</a>, <span class="keywordtype">int</span> len) {</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; string_.set(v, <a class="code" href="partitioning-throughput-test_8cc.html#ad172ecfd5c31c5df6282c2b4bc322bf7">offset</a>, len);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; }</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html">com.cloudera.impala.hive.executor.ImpalaTextWritable</a></div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00023">ImpalaTextWritable.java:23</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaStringWritable_html"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaStringWritable.html">com.cloudera.impala.hive.executor.ImpalaStringWritable</a></div><div class="ttdef"><b>Definition:</b> <a href="ImpalaStringWritable_8java_source.html#l00031">ImpalaStringWritable.java:31</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_aee119798a38c3868adfc89166f1da5ec"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#aee119798a38c3868adfc89166f1da5ec">com.cloudera.impala.hive.executor.ImpalaTextWritable.getStringWritable</a></div><div class="ttdeci">ImpalaStringWritable getStringWritable()</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00037">ImpalaTextWritable.java:37</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_a8b1094836752caeb8d89b32a3053770a"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a8b1094836752caeb8d89b32a3053770a">com.cloudera.impala.hive.executor.ImpalaTextWritable.ImpalaTextWritable</a></div><div class="ttdeci">ImpalaTextWritable(long ptr)</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00026">ImpalaTextWritable.java:26</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_afc7653960534f47b7dafeeb5c98d1c48"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#afc7653960534f47b7dafeeb5c98d1c48">com.cloudera.impala.hive.executor.ImpalaTextWritable.set</a></div><div class="ttdeci">void set(byte[] v, int offset, int len)</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00040">ImpalaTextWritable.java:40</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_a6426a10e27ede90a09b3d50417244d40"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a6426a10e27ede90a09b3d50417244d40">com.cloudera.impala.hive.executor.ImpalaTextWritable.string_</a></div><div class="ttdeci">final ImpalaStringWritable string_</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00024">ImpalaTextWritable.java:24</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_acc7e6d3fc84c49183ce3c4aca4aaa441"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#acc7e6d3fc84c49183ce3c4aca4aaa441">com.cloudera.impala.hive.executor.ImpalaTextWritable.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00031">ImpalaTextWritable.java:31</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_a3c820c65f956679e52d46712e02b9d74"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a3c820c65f956679e52d46712e02b9d74">com.cloudera.impala.hive.executor.ImpalaTextWritable.getLength</a></div><div class="ttdeci">int getLength()</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00035">ImpalaTextWritable.java:35</a></div></div>
<div class="ttc" id="partitioning-throughput-test_8cc_html_ad172ecfd5c31c5df6282c2b4bc322bf7"><div class="ttname"><a href="partitioning-throughput-test_8cc.html#ad172ecfd5c31c5df6282c2b4bc322bf7">offset</a></div><div class="ttdeci">uint8_t offset[7 *64-sizeof(uint64_t)]</div><div class="ttdef"><b>Definition:</b> <a href="partitioning-throughput-test_8cc_source.html#l00037">partitioning-throughput-test.cc:37</a></div></div>
<div class="ttc" id="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable_html_a0d4785e83f00d2d81a10c4b501675192"><div class="ttname"><a href="classcom_1_1cloudera_1_1impala_1_1hive_1_1executor_1_1ImpalaTextWritable.html#a0d4785e83f00d2d81a10c4b501675192">com.cloudera.impala.hive.executor.ImpalaTextWritable.getBytes</a></div><div class="ttdeci">byte[] getBytes()</div><div class="ttdef"><b>Definition:</b> <a href="ImpalaTextWritable_8java_source.html#l00033">ImpalaTextWritable.java:33</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_ca2797c59c2e868cd2eca72571423f6a.html">fe</a></li><li class="navelem"><a class="el" href="dir_9456c03c9c6e5a96e843b28fc5c6395b.html">src</a></li><li class="navelem"><a class="el" href="dir_31c8d7a6e8855be2d8d6fa4227c487c3.html">main</a></li><li class="navelem"><a class="el" href="dir_d2615d3423c50009d0fa2801d3e0150c.html">java</a></li><li class="navelem"><a class="el" href="dir_df2af9fb37a2f3aedd0dd3e7b116eedc.html">com</a></li><li class="navelem"><a class="el" href="dir_48ee7e70be44cce637301d7ac948c4e1.html">cloudera</a></li><li class="navelem"><a class="el" href="dir_c062777d65f1b5dc463ca31df638b83a.html">impala</a></li><li class="navelem"><a class="el" href="dir_3b8dc898e0fecff806831a04cddcf161.html">hive</a></li><li class="navelem"><a class="el" href="dir_2b11fc4c701ea53db54af72951c0189d.html">executor</a></li><li class="navelem"><a class="el" href="ImpalaTextWritable_8java.html">ImpalaTextWritable.java</a></li>
<li class="footer">Generated on Thu May 7 2015 16:10:39 for Impala by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>