http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/numpy__to__arrow_8h_source.html ---------------------------------------------------------------------- diff --git a/docs/cpp/numpy__to__arrow_8h_source.html b/docs/cpp/numpy__to__arrow_8h_source.html new file mode 100644 index 0000000..6f5c809 --- /dev/null +++ b/docs/cpp/numpy__to__arrow_8h_source.html @@ -0,0 +1,82 @@ +<!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.13"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/arrow/python/numpy_to_arrow.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="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Apache Arrow (C++) + </div> + <div id="projectbrief">A columnar in-memory analytics layer designed to accelerate big data.</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.13 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> +<script type="text/javascript" src="menudata.js"></script> +<script type="text/javascript" src="menu.js"></script> +<script type="text/javascript"> +$(function() { + initMenu('',true,false,'search.php','Search'); + $(document).ready(function() { init_search(); }); +}); +</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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_4f683177589ce7b8fe2ef6d807198da3.html">arrow</a></li><li class="navelem"><a class="el" href="dir_fe25ba37dfe21fed8dcc297696dcf71e.html">python</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">numpy_to_arrow.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="numpy__to__arrow_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><s pan class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// software dist ributed under the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// Converting from pandas memory representation to Arrow data structures</span></div><div class= "line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef ARROW_PYTHON_NUMPY_TO_ARROW_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define ARROW_PYTHON_NUMPY_TO_ARROW_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="platform_8h.html">arrow/python/platform.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="lin e"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="visibility_8h.html">arrow/util/visibility.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacearrow.html">arrow</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">class </span>Array;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">class </span>ChunkedArray;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">class </span>DataType;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&# 160;<span class="keyword">class </span>MemoryPool;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">class </span>Status;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span>py {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> ARROW_EXPORT</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> Status <a class="code" href="namespacearrow_1_1py.html#a7e917e2ca4220b4d50c617d4f54ed5eb">NdarrayToArrow</a>(MemoryPool* pool, PyObject* ao, PyObject* mo,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">bool</span> use_pandas_null_sentinels,</div><div class="line "><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">const</span> std::shared_ptr<DataType>& type,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  std::shared_ptr<ChunkedArray>* out);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> } <span class="comment">// namespace py</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> } <span class="comment">// namespace arrow</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#endif // ARROW_PYTHON_NUMPY_TO_ARROW_H</span></div><div class="ttc" id="platform_8h_html"><div class="ttname"><a href="platform_8h.html">platf orm.h</a></div></div> +<div class="ttc" id="visibility_8h_html"><div class="ttname"><a href="visibility_8h.html">visibility.h</a></div></div> +<div class="ttc" id="namespacearrow_html"><div class="ttname"><a href="namespacearrow.html">arrow</a></div><div class="ttdoc">Top-level namespace for Apache Arrow C++ API. </div><div class="ttdef"><b>Definition:</b> allocator.h:28</div></div> +<div class="ttc" id="namespacearrow_1_1py_html_a7e917e2ca4220b4d50c617d4f54ed5eb"><div class="ttname"><a href="namespacearrow_1_1py.html#a7e917e2ca4220b4d50c617d4f54ed5eb">arrow::py::NdarrayToArrow</a></div><div class="ttdeci">Status NdarrayToArrow(MemoryPool *pool, PyObject *ao, PyObject *mo, bool use_pandas_null_sentinels, const std::shared_ptr< DataType > &type, std::shared_ptr< ChunkedArray > *out)</div><div class="ttdoc">Convert NumPy arrays to Arrow. </div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.13 +</small></address> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/parallel_8h.html ---------------------------------------------------------------------- diff --git a/docs/cpp/parallel_8h.html b/docs/cpp/parallel_8h.html index 0cea9ab..cc13ecd 100644 --- a/docs/cpp/parallel_8h.html +++ b/docs/cpp/parallel_8h.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/arrow/util/parallel.h File Reference</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/arrow/util/parallel.h File Reference</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> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/parallel_8h_source.html ---------------------------------------------------------------------- diff --git a/docs/cpp/parallel_8h_source.html b/docs/cpp/parallel_8h_source.html index 0be0683..ba270eb 100644 --- a/docs/cpp/parallel_8h_source.html +++ b/docs/cpp/parallel_8h_source.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/arrow/util/parallel.h Source File</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/arrow/util/parallel.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> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2common_8h.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2common_8h.html b/docs/cpp/plasma_2common_8h.html index 1992be2..31688d3 100644 --- a/docs/cpp/plasma_2common_8h.html +++ b/docs/cpp/plasma_2common_8h.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/common.h File Reference</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/common.h File Reference</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> @@ -76,6 +76,7 @@ $(function() { <div class="contents"> <div class="textblock"><code>#include <cstring></code><br /> <code>#include <string></code><br /> +<code>#include "<a class="el" href="compat_8h_source.html">plasma/compat.h</a>"</code><br /> <code>#include "<a class="el" href="status_8h_source.html">arrow/status.h</a>"</code><br /> <code>#include "<a class="el" href="logging_8h_source.html">arrow/util/logging.h</a>"</code><br /> </div> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2common_8h_source.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2common_8h_source.html b/docs/cpp/plasma_2common_8h_source.html index 1870db2..9c1bf85 100644 --- a/docs/cpp/plasma_2common_8h_source.html +++ b/docs/cpp/plasma_2common_8h_source.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/common.h Source File</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/common.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> @@ -67,30 +67,31 @@ $(function() { <div class="title">common.h</div> </div> </div><!--header--> <div class="contents"> -<a href="plasma_2common_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><spa n class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// software distri buted under the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef PLASMA_COMMON_H</span></div><div class="line"><a name="l00019"></a><span class="linen o"> 19</span> <span class="preprocessor">#define PLASMA_COMMON_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <cstring></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// TODO(pcm): Convert getopt and sscanf in the store to use more idiomatic C++</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// and get rid of the next three lines:</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#ifndef __STDC_FORMAT_MACROS</span></div><div class="line"><a name="l00026"></a><span class="linen o"> 26</span> <span class="preprocessor">#define __STDC_FORMAT_MACROS</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="status_8h.html">arrow/status.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="logging_8h.html">arrow/util/logging.h</a>"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceplasma.html">plasma</a> {</div><div class="line"><a name="l00033"></a>< span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14"> 34</a></span> constexpr int64_t <a class="code" href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14">kUniqueIDSize</a> = 20;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classplasma_1_1_unique_i_d.html"> 36</a></span> <span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">static</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> from_random();</div ><div class="line"><a name="l00039"></a><span class="lineno"> >39</span>  <span class="keyword">static</span> <a class="code" >href="classplasma_1_1_unique_i_d.html">UniqueID</a> from_binary(<span >class="keyword">const</span> std::string& <a class="code" >href="namespacearrow.html#a66c3979f26a439e78d048bbac84a9232">binary</a>);</div><div > class="line"><a name="l00040"></a><span class="lineno"> 40</span>  ><span class="keywordtype">bool</span> <a class="code" >href="namespacearrow.html#a6cdf639b318b550f64e0a20a84961539">operator==</a>(<span > class="keyword">const</span> <a class="code" >href="classplasma_1_1_unique_i_d.html">UniqueID</a>& rhs) <span >class="keyword">const</span>;</div><div class="line"><a >name="l00041"></a><span class="lineno"> 41</span>  <span >class="keyword">const</span> uint8_t* data() <span >class="keyword">const</span>;</div><div class="line"><a >name="l00042"></a><span class="lineno"> 42</span>  uint8_t* >mutable_data();</div><div cl ass="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::string <a class="code" href="namespacearrow.html#a66c3979f26a439e78d048bbac84a9232">binary</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  std::string hex() <span class="keyword">const</span>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  uint8_t id_[<a class="code" href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14">kUniqueIDSize</a>];</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> };</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span > static_assert(std::is_pod<UniqueID>::value, <span >class="stringliteral">"UniqueID must be plain old >data"</span>);</div><div class="line"><a name="l00051"></a><span >class="lineno"> 51</span> </div><div class="line"><a >name="l00052"></a><span class="lineno"><a class="line" >href="structplasma_1_1_unique_i_d_hasher.html"> 52</a></span> <span >class="keyword">struct </span><a class="code" >href="structplasma_1_1_unique_i_d_hasher.html">UniqueIDHasher</a> {</div><div >class="line"><a name="l00053"></a><span class="lineno"> 53</span>  ><span class="comment">// ObjectID hashing function.</span></div><div >class="line"><a name="l00054"></a><span class="lineno"><a class="line" >href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271"> > 54</a></span>  <span class="keywordtype">size_t</span> <a >class="code" >href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271">operator()</a>(<span > class="keyword">c onst</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">size_t</span> result;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::memcpy(&result, <span class="keywordtype">id</span>.data(), <span class="keyword">sizeof</span>(<span class="keywordtype">size_t</span>));</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> };</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="l ine" href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75"> 61</a></span> <span class="keyword">typedef</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> <a class="code" href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75">ObjectID</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <a class="code" href="classarrow_1_1_status.html">arrow::Status</a> <a class="code" href="namespaceplasma.html#ad35158aba7ee89d76433affdb9a820ef">plasma_error_status</a>(<span class="keywordtype">int</span> plasma_error);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceplasma.html#a9063b8c2b48b267f01082f522b5a3d61"> 66</a></span> constexpr int64_t <a class="code" href="namespaceplasma.html#a9063b8c2b48 b267f01082f522b5a3d61">kDigestSize</a> = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html"> 69</a></span> <span class="keyword">struct </span><a class="code" href="structplasma_1_1_object_request.html">ObjectRequest</a> {</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583ab"> 71</a></span>  ObjectID <a class="code" href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583ab">object_id</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc"> 77</a></span>  <span class="keywordtype">int</span> <a class="code" href="structplasma_1_1_ob ject_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc">type</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93"> 85</a></span>  <span class="keywordtype">int</span> <a class="code" href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93">status</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f"> 88</a></span> <span class="keyword">enum</span> <a class="code" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f">ObjectRequestType</a> {</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28 429fa7a4970a3eac1b40279bf14b35792a5e3"> 90</a></span>  <a class="code" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3">PLASMA_QUERY_LOCAL</a> = 1,</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35"> 92</a></span>  <a class="code" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35">PLASMA_QUERY_ANYWHERE</a></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> };</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a3eb1f03a21e0d30051f71ea0dffb60b6">ObjectStatusLocal</a>;</div><div class="line"><a name= "l00096"></a><span class="lineno"> 96</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#adad270e3180efe944d7e720ff0e02973">ObjectStatusRemote</a>;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">struct </span><a class="code" href="structplasma_1_1_plasma_store_info.html">PlasmaStoreInfo</a>;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structplasma_1_1_plasma_store_info.html">PlasmaStoreInfo</a>* <a class="code" href="namespaceplasma.html#a79f03df6bdbea4f7c9bc644473aef03d">plasma_config</a>;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> } <span class="comment">// namespace plasma</span></div><div cla ss="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#endif // PLASMA_COMMON_H</span></div><div class="ttc" id="namespaceplasma_html_adad270e3180efe944d7e720ff0e02973"><div class="ttname"><a href="namespaceplasma.html#adad270e3180efe944d7e720ff0e02973">plasma::ObjectStatusRemote</a></div><div class="ttdeci">int ObjectStatusRemote</div></div> -<div class="ttc" id="structplasma_1_1_plasma_store_info_html"><div class="ttname"><a href="structplasma_1_1_plasma_store_info.html">plasma::PlasmaStoreInfo</a></div><div class="ttdoc">The plasma store information that is exposed to the eviction policy. </div><div class="ttdef"><b>Definition:</b> plasma.h:127</div></div> +<a href="plasma_2common_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><spa n class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// software distri buted under the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef PLASMA_COMMON_H</span></div><div class="line"><a name="l00019"></a><span class="linen o"> 19</span> <span class="preprocessor">#define PLASMA_COMMON_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <cstring></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// TODO(pcm): Convert getopt and sscanf in the store to use more idiomatic C++</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// and get rid of the next three lines:</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#ifndef __STDC_FORMAT_MACROS</span></div><div class="line"><a name="l00026"></a><span class="linen o"> 26</span> <span class="preprocessor">#define __STDC_FORMAT_MACROS</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="compat_8h.html">plasma/compat.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="status_8h.html">arrow/status.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="logging_8h.html">arrow/util/logging.h</a>"</span></div><div class="line"><a na me="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">namespace </span><a class="code" href="namespaceplasma.html">plasma</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14"> 36</a></span> constexpr int64_t <a class="code" href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14">kUniqueIDSize</a> = 20;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classplasma_1_1_unique_i_d.html"> 38</a></span> <span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">static</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> from_random();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">static</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> from_binary(<span class="keyword">const</span> std::string& <a class="code" href="namespacearrow.html#a66c3979f26a439e78d048bbac84a9232">binary</a>);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#a6cdf639b318b550f64e0a20a84961539">operator==</a>(<span class="keyword">const</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a>& rhs) <span class="keyword">const</span>;</div><div clas s="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> uint8_t* data() <span class="keyword">const</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  uint8_t* mutable_data();</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  std::string <a class="code" href="namespacearrow.html#a66c3979f26a439e78d048bbac84a9232">binary</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  std::string hex() <span class="keyword">const</span>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  uint8_t id_[<a class="code" href="namespaceplasma.html#aa4472f35b20c7f87cfd8 343de3efbd14">kUniqueIDSize</a>];</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> static_assert(std::is_pod<UniqueID>::value, <span class="stringliteral">"UniqueID must be plain old data"</span>);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structplasma_1_1_unique_i_d_hasher.html"> 54</a></span> <span class="keyword">struct </span><a class="code" href="structplasma_1_1_unique_i_d_hasher.html">UniqueIDHasher</a> {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// ObjectID hashing function.</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271"> 56</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271">operator()</a>(<span class="keyword">const</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">size_t</span> result;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::memcpy(&result, <span class="keywordtype">id</span>.data(), <span class="keyword">sizeof</span>(<span class="keywordtype">size_t</span>));</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00060"></a><span cla ss="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75"> 63</a></span> <span class="keyword">typedef</span> <a class="code" href="classplasma_1_1_unique_i_d.html">UniqueID</a> <a class="code" href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75">ObjectID</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <a class="code" href="classarrow_1_1_status.html">arrow::Status</a> <a class="code" href="namespaceplasma.html#ad35158aba7ee89d76433affdb9a820ef">plasma_error_status</a>(<span class="keywordtype">int</span> plasma_error);</div><div class="line"><a name="l00066"></ a><span class="lineno"> 66</span> </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="namespaceplasma.html#a9063b8c2b48b267f01082f522b5a3d61"> 68</a></span> constexpr int64_t <a class="code" href="namespaceplasma.html#a9063b8c2b48b267f01082f522b5a3d61">kDigestSize</a> = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html"> 71</a></span> <span class="keyword">struct </span><a class="code" href="structplasma_1_1_object_request.html">ObjectRequest</a> {</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583ab"> 73</a></span>  ObjectID <a class="code" href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583 ab">object_id</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc"> 79</a></span>  <span class="keywordtype">int</span> <a class="code" href="structplasma_1_1_object_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc">type</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93"> 87</a></span>  <span class="keywordtype">int</span> <a class="code" href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93">status</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> };</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f"> 90</a></span > <span class="keyword">enum</span> <a class="code" >href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f">ObjectRequestType</a> > {</div><div class="line"><a name="l00092"></a><span class="lineno"><a >class="line" >href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3"> > 92</a></span>  <a class="code" >href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3">PLASMA_QUERY_LOCAL</a> > = 1,</div><div class="line"><a name="l00094"></a><span class="lineno"><a >class="line" >href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35"> > 94</a></span>  <a class="code" >href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35">PLASMA_QUERY_ANYWHERE</a></div><div > class="line"><a name="l00095"></a><span class="lineno"> >95</span> };</div><div class="line"><a name="l00096"></a><span >class="lineno"> 96</span> </div><di v class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a3eb1f03a21e0d30051f71ea0dffb60b6">ObjectStatusLocal</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#adad270e3180efe944d7e720ff0e02973">ObjectStatusRemote</a>;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">struct </span><a class="code" href="structplasma_1_1_plasma_store_info.html">PlasmaStoreInfo</a>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structplasma_1_1_plasma_sto re_info.html">PlasmaStoreInfo</a>* <a class="code" href="namespaceplasma.html#a79f03df6bdbea4f7c9bc644473aef03d">plasma_config</a>;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> } <span class="comment">// namespace plasma</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#endif // PLASMA_COMMON_H</span></div><div class="ttc" id="namespaceplasma_html_adad270e3180efe944d7e720ff0e02973"><div class="ttname"><a href="namespaceplasma.html#adad270e3180efe944d7e720ff0e02973">plasma::ObjectStatusRemote</a></div><div class="ttdeci">int ObjectStatusRemote</div></div> +<div class="ttc" id="structplasma_1_1_plasma_store_info_html"><div class="ttname"><a href="structplasma_1_1_plasma_store_info.html">plasma::PlasmaStoreInfo</a></div><div class="ttdoc">The plasma store information that is exposed to the eviction policy. </div><div class="ttdef"><b>Definition:</b> plasma.h:129</div></div> <div class="ttc" id="namespacearrow_html_a66c3979f26a439e78d048bbac84a9232"><div class="ttname"><a href="namespacearrow.html#a66c3979f26a439e78d048bbac84a9232">arrow::binary</a></div><div class="ttdeci">std::shared_ptr< DataType > binary()</div></div> -<div class="ttc" id="structplasma_1_1_object_request_html_a69563b33ec4cdfc9cdd094ada24dd3fc"><div class="ttname"><a href="structplasma_1_1_object_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc">plasma::ObjectRequest::type</a></div><div class="ttdeci">int type</div><div class="ttdoc">Request associated to the object. </div><div class="ttdef"><b>Definition:</b> common.h:77</div></div> -<div class="ttc" id="structplasma_1_1_object_request_html"><div class="ttname"><a href="structplasma_1_1_object_request.html">plasma::ObjectRequest</a></div><div class="ttdoc">Object request data structure. Used for Wait. </div><div class="ttdef"><b>Definition:</b> common.h:69</div></div> -<div class="ttc" id="namespaceplasma_html_adf1aa2f87f6f11e1993628f574e31e75"><div class="ttname"><a href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75">plasma::ObjectID</a></div><div class="ttdeci">UniqueID ObjectID</div><div class="ttdef"><b>Definition:</b> common.h:61</div></div> -<div class="ttc" id="classplasma_1_1_unique_i_d_html"><div class="ttname"><a href="classplasma_1_1_unique_i_d.html">plasma::UniqueID</a></div><div class="ttdef"><b>Definition:</b> common.h:36</div></div> -<div class="ttc" id="structplasma_1_1_object_request_html_a0b090ab0f96576bcd70493154a3583ab"><div class="ttname"><a href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583ab">plasma::ObjectRequest::object_id</a></div><div class="ttdeci">ObjectID object_id</div><div class="ttdoc">The ID of the requested object. If ID_NIL request any object. </div><div class="ttdef"><b>Definition:</b> common.h:71</div></div> +<div class="ttc" id="structplasma_1_1_object_request_html_a69563b33ec4cdfc9cdd094ada24dd3fc"><div class="ttname"><a href="structplasma_1_1_object_request.html#a69563b33ec4cdfc9cdd094ada24dd3fc">plasma::ObjectRequest::type</a></div><div class="ttdeci">int type</div><div class="ttdoc">Request associated to the object. </div><div class="ttdef"><b>Definition:</b> common.h:79</div></div> +<div class="ttc" id="structplasma_1_1_object_request_html"><div class="ttname"><a href="structplasma_1_1_object_request.html">plasma::ObjectRequest</a></div><div class="ttdoc">Object request data structure. Used for Wait. </div><div class="ttdef"><b>Definition:</b> common.h:71</div></div> +<div class="ttc" id="namespaceplasma_html_adf1aa2f87f6f11e1993628f574e31e75"><div class="ttname"><a href="namespaceplasma.html#adf1aa2f87f6f11e1993628f574e31e75">plasma::ObjectID</a></div><div class="ttdeci">UniqueID ObjectID</div><div class="ttdef"><b>Definition:</b> common.h:63</div></div> +<div class="ttc" id="classplasma_1_1_unique_i_d_html"><div class="ttname"><a href="classplasma_1_1_unique_i_d.html">plasma::UniqueID</a></div><div class="ttdef"><b>Definition:</b> common.h:38</div></div> +<div class="ttc" id="structplasma_1_1_object_request_html_a0b090ab0f96576bcd70493154a3583ab"><div class="ttname"><a href="structplasma_1_1_object_request.html#a0b090ab0f96576bcd70493154a3583ab">plasma::ObjectRequest::object_id</a></div><div class="ttdeci">ObjectID object_id</div><div class="ttdoc">The ID of the requested object. If ID_NIL request any object. </div><div class="ttdef"><b>Definition:</b> common.h:73</div></div> <div class="ttc" id="logging_8h_html"><div class="ttname"><a href="logging_8h.html">logging.h</a></div></div> <div class="ttc" id="classarrow_1_1_status_html"><div class="ttname"><a href="classarrow_1_1_status.html">arrow::Status</a></div><div class="ttdef"><b>Definition:</b> status.h:106</div></div> -<div class="ttc" id="namespaceplasma_html_a9063b8c2b48b267f01082f522b5a3d61"><div class="ttname"><a href="namespaceplasma.html#a9063b8c2b48b267f01082f522b5a3d61">plasma::kDigestSize</a></div><div class="ttdeci">constexpr int64_t kDigestSize</div><div class="ttdoc">Size of object hash digests. </div><div class="ttdef"><b>Definition:</b> common.h:66</div></div> -<div class="ttc" id="structplasma_1_1_unique_i_d_hasher_html_aff38c1428f7b9a9ef906c160af179271"><div class="ttname"><a href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271">plasma::UniqueIDHasher::operator()</a></div><div class="ttdeci">size_t operator()(const UniqueID &id) const</div><div class="ttdef"><b>Definition:</b> common.h:54</div></div> +<div class="ttc" id="namespaceplasma_html_a9063b8c2b48b267f01082f522b5a3d61"><div class="ttname"><a href="namespaceplasma.html#a9063b8c2b48b267f01082f522b5a3d61">plasma::kDigestSize</a></div><div class="ttdeci">constexpr int64_t kDigestSize</div><div class="ttdoc">Size of object hash digests. </div><div class="ttdef"><b>Definition:</b> common.h:68</div></div> +<div class="ttc" id="structplasma_1_1_unique_i_d_hasher_html_aff38c1428f7b9a9ef906c160af179271"><div class="ttname"><a href="structplasma_1_1_unique_i_d_hasher.html#aff38c1428f7b9a9ef906c160af179271">plasma::UniqueIDHasher::operator()</a></div><div class="ttdeci">size_t operator()(const UniqueID &id) const</div><div class="ttdef"><b>Definition:</b> common.h:56</div></div> <div class="ttc" id="namespaceplasma_html_ad35158aba7ee89d76433affdb9a820ef"><div class="ttname"><a href="namespaceplasma.html#ad35158aba7ee89d76433affdb9a820ef">plasma::plasma_error_status</a></div><div class="ttdeci">arrow::Status plasma_error_status(int plasma_error)</div></div> <div class="ttc" id="namespaceplasma_html_a3eb1f03a21e0d30051f71ea0dffb60b6"><div class="ttname"><a href="namespaceplasma.html#a3eb1f03a21e0d30051f71ea0dffb60b6">plasma::ObjectStatusLocal</a></div><div class="ttdeci">int ObjectStatusLocal</div></div> <div class="ttc" id="namespaceplasma_html"><div class="ttname"><a href="namespaceplasma.html">plasma</a></div><div class="ttdef"><b>Definition:</b> client.h:35</div></div> -<div class="ttc" id="structplasma_1_1_object_request_html_a3672e0c6a1496a33066b33df03f57d93"><div class="ttname"><a href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93">plasma::ObjectRequest::status</a></div><div class="ttdeci">int status</div><div class="ttdoc">Object status. </div><div class="ttdef"><b>Definition:</b> common.h:85</div></div> -<div class="ttc" id="structplasma_1_1_unique_i_d_hasher_html"><div class="ttname"><a href="structplasma_1_1_unique_i_d_hasher.html">plasma::UniqueIDHasher</a></div><div class="ttdef"><b>Definition:</b> common.h:52</div></div> +<div class="ttc" id="structplasma_1_1_object_request_html_a3672e0c6a1496a33066b33df03f57d93"><div class="ttname"><a href="structplasma_1_1_object_request.html#a3672e0c6a1496a33066b33df03f57d93">plasma::ObjectRequest::status</a></div><div class="ttdeci">int status</div><div class="ttdoc">Object status. </div><div class="ttdef"><b>Definition:</b> common.h:87</div></div> +<div class="ttc" id="compat_8h_html"><div class="ttname"><a href="compat_8h.html">compat.h</a></div></div> +<div class="ttc" id="structplasma_1_1_unique_i_d_hasher_html"><div class="ttname"><a href="structplasma_1_1_unique_i_d_hasher.html">plasma::UniqueIDHasher</a></div><div class="ttdef"><b>Definition:</b> common.h:54</div></div> <div class="ttc" id="status_8h_html"><div class="ttname"><a href="status_8h.html">status.h</a></div></div> -<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429f"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f">plasma::ObjectRequestType</a></div><div class="ttdeci">ObjectRequestType</div><div class="ttdef"><b>Definition:</b> common.h:88</div></div> +<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429f"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429f">plasma::ObjectRequestType</a></div><div class="ttdeci">ObjectRequestType</div><div class="ttdef"><b>Definition:</b> common.h:90</div></div> <div class="ttc" id="namespacearrow_html_a6cdf639b318b550f64e0a20a84961539"><div class="ttname"><a href="namespacearrow.html#a6cdf639b318b550f64e0a20a84961539">arrow::operator==</a></div><div class="ttdeci">bool operator==(const stl_allocator< T1 > &lhs, const stl_allocator< T2 > &rhs) noexcept</div><div class="ttdef"><b>Definition:</b> allocator.h:88</div></div> -<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3">plasma::PLASMA_QUERY_LOCAL</a></div><div class="ttdoc">Query for object in the local plasma store. </div><div class="ttdef"><b>Definition:</b> common.h:90</div></div> -<div class="ttc" id="namespaceplasma_html_aa4472f35b20c7f87cfd8343de3efbd14"><div class="ttname"><a href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14">plasma::kUniqueIDSize</a></div><div class="ttdeci">constexpr int64_t kUniqueIDSize</div><div class="ttdef"><b>Definition:</b> common.h:34</div></div> +<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa7a4970a3eac1b40279bf14b35792a5e3">plasma::PLASMA_QUERY_LOCAL</a></div><div class="ttdoc">Query for object in the local plasma store. </div><div class="ttdef"><b>Definition:</b> common.h:92</div></div> +<div class="ttc" id="namespaceplasma_html_aa4472f35b20c7f87cfd8343de3efbd14"><div class="ttname"><a href="namespaceplasma.html#aa4472f35b20c7f87cfd8343de3efbd14">plasma::kUniqueIDSize</a></div><div class="ttdeci">constexpr int64_t kUniqueIDSize</div><div class="ttdef"><b>Definition:</b> common.h:36</div></div> <div class="ttc" id="namespaceplasma_html_a79f03df6bdbea4f7c9bc644473aef03d"><div class="ttname"><a href="namespaceplasma.html#a79f03df6bdbea4f7c9bc644473aef03d">plasma::plasma_config</a></div><div class="ttdeci">const PlasmaStoreInfo * plasma_config</div></div> -<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35">plasma::PLASMA_QUERY_ANYWHERE</a></div><div class="ttdoc">Query for object in the local plasma store or in a remote plasma store. </div><div class="ttdef"><b>Definition:</b> common.h:92</div></div> +<div class="ttc" id="namespaceplasma_html_acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35"><div class="ttname"><a href="namespaceplasma.html#acb5999d17ead6b41e62eae12ed28429fa02b5600336a1adacf2fbf6cd65c5da35">plasma::PLASMA_QUERY_ANYWHERE</a></div><div class="ttdoc">Query for object in the local plasma store or in a remote plasma store. </div><div class="ttdef"><b>Definition:</b> common.h:94</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2io_8h.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2io_8h.html b/docs/cpp/plasma_2io_8h.html index 0c54594..e949e38 100644 --- a/docs/cpp/plasma_2io_8h.html +++ b/docs/cpp/plasma_2io_8h.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/io.h File Reference</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/io.h File Reference</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> @@ -78,6 +78,7 @@ $(function() { <code>#include <string></code><br /> <code>#include <vector></code><br /> <code>#include "<a class="el" href="status_8h_source.html">arrow/status.h</a>"</code><br /> +<code>#include "<a class="el" href="compat_8h_source.html">plasma/compat.h</a>"</code><br /> </div> <p><a href="plasma_2io_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2io_8h_source.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2io_8h_source.html b/docs/cpp/plasma_2io_8h_source.html index 10d0328..7729456 100644 --- a/docs/cpp/plasma_2io_8h_source.html +++ b/docs/cpp/plasma_2io_8h_source.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/io.h Source File</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/io.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> @@ -67,7 +67,7 @@ $(function() { <div class="title">io.h</div> </div> </div><!--header--> <div class="contents"> -<a href="plasma_2io_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><span cl ass="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// software distribute d under the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef PLASMA_IO_H</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19 </span> <span class="preprocessor">#define PLASMA_IO_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <inttypes.h></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <sys/socket.h></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <sys/un.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <unistd.h></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00027"></a ><span class="lineno"> 27</span> <span class="preprocessor">#include ><vector></span></div><div class="line"><a name="l00028"></a><span >class="lineno"> 28</span> </div><div class="line"><a >name="l00029"></a><span class="lineno"> 29</span> <span >class="preprocessor">#include "<a class="code" >href="status_8h.html">arrow/status.h</a>"</span></div><div >class="line"><a name="l00030"></a><span class="lineno"> >30</span> </div><div class="line"><a name="l00031"></a><span >class="lineno"> 31</span> <span class="comment">// TODO(pcm): Replace >our own custom message header (message type,</span></div><div class="line"><a >name="l00032"></a><span class="lineno"> 32</span> <span >class="comment">// message length, plasma protocol verion) with one that is >serialized</span></div><div class="line"><a name="l00033"></a><span >class="lineno"> 33</span> <span class="comment">// using >flatbuffers.</span></div><div class="line"><a name="l00034"> </a><span class="lineno"><a class="line" href="plasma_2io_8h.html#ac1eb4de6995f6a189a764d1cfd960999"> 34</a></span> <span class="preprocessor">#define PLASMA_PROTOCOL_VERSION 0x0000000000000000</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="plasma_2io_8h.html#a106d24a9bf85a25f10749f82c03aa11c"> 35</a></span> <span class="preprocessor">#define DISCONNECT_CLIENT 0</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span><a class="code" href="namespaceplasma.html">plasma</a> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">using</span> <a class="code" href="classarrow_1_1_status.html">arrow::Status</a>;</div><div class="line"><a name ="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> Status <a class="code" href="namespaceplasma.html#aacbe7037e6ebb567ec3ce7080979250b">WriteBytes</a>(<span class="keywordtype">int</span> fd, uint8_t* cursor, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> Status <a class="code" href="namespaceplasma.html#aba411eeda1919505149496cce94faad3">WriteMessage</a>(<span class="keywordtype">int</span> fd, int64_t type, int64_t length, uint8_t* bytes);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> Status <a class="code" href="namespaceplasma.html#a54a35f317b285137bb6ee924b81a86fb">ReadBytes</a>(<span class="keywordtype">int< /span> fd, uint8_t* cursor, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> Status <a class="code" href="namespaceplasma.html#a0f1c3f44f2d352035348f0d91c0e5647">ReadMessage</a>(<span class="keywordtype">int</span> fd, int64_t* type, std::vector<uint8_t>* buffer);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a8e7fc2133a26068903ed43616b22b356">bind_ipc_sock</a>(<span class="keyword">const</span> std::string& pathname, <span class="keywordtype">bool</span> shall_listen);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lin eno"> 51</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a1fd7c1d47588660de8ed6a8db0fb25d2">connect_ipc_sock</a>(<span class="keyword">const</span> std::string& pathname);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> Status <a class="code" href="namespaceplasma.html#ada38718497b348090aa7ad7f6f4f58bd">ConnectIpcSocketRetry</a>(<span class="keyword">const</span> std::string& pathname, <span class="keywordtype">int</span> num_retries,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  int64_t timeout, <span class="keywordtype">int</span>* fd);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">int</span> <a class= "code" href="namespaceplasma.html#a921c700c8cae2dd7bf7a47f07c53bd46">AcceptClient</a>(<span class="keywordtype">int</span> socket_fd);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> uint8_t* <a class="code" href="namespaceplasma.html#a8cab2ffcae3618b94645ad0ab8014ba2">read_message_async</a>(<span class="keywordtype">int</span> sock);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> } <span class="comment">// namespace plasma</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#endif // PLASMA_IO_H</span></div><div class="ttc" id="namespaceplasma_html_ada38718497b348090aa7ad7f6f4f58bd"><div class="ttna me"><a href="namespaceplasma.html#ada38718497b348090aa7ad7f6f4f58bd">plasma::ConnectIpcSocketRetry</a></div><div class="ttdeci">Status ConnectIpcSocketRetry(const std::string &pathname, int num_retries, int64_t timeout, int *fd)</div></div> +<a href="plasma_2io_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><span cl ass="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// software distribute d under the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef PLASMA_IO_H</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19 </span> <span class="preprocessor">#define PLASMA_IO_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <inttypes.h></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <sys/socket.h></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <sys/un.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <unistd.h></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00027"></a ><span class="lineno"> 27</span> <span class="preprocessor">#include ><vector></span></div><div class="line"><a name="l00028"></a><span >class="lineno"> 28</span> </div><div class="line"><a >name="l00029"></a><span class="lineno"> 29</span> <span >class="preprocessor">#include "<a class="code" >href="status_8h.html">arrow/status.h</a>"</span></div><div >class="line"><a name="l00030"></a><span class="lineno"> >30</span> <span class="preprocessor">#include "<a class="code" >href="compat_8h.html">plasma/compat.h</a>"</span></div><div >class="line"><a name="l00031"></a><span class="lineno"> >31</span> </div><div class="line"><a name="l00032"></a><span >class="lineno"> 32</span> <span class="comment">// TODO(pcm): Replace >our own custom message header (message type,</span></div><div class="line"><a >name="l00033"></a><span class="lineno"> 33</span> <span >class="comment">// message length, plasma protocol verion) with one that is serialized</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// using flatbuffers.</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="plasma_2io_8h.html#ac1eb4de6995f6a189a764d1cfd960999"> 35</a></span> <span class="preprocessor">#define PLASMA_PROTOCOL_VERSION 0x0000000000000000</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="plasma_2io_8h.html#a106d24a9bf85a25f10749f82c03aa11c"> 36</a></span> <span class="preprocessor">#define DISCONNECT_CLIENT 0</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span><a class="code" href="namespaceplasma.html">plasma</a> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line "><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">using</span> <a class="code" href="classarrow_1_1_status.html">arrow::Status</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> Status <a class="code" href="namespaceplasma.html#aacbe7037e6ebb567ec3ce7080979250b">WriteBytes</a>(<span class="keywordtype">int</span> fd, uint8_t* cursor, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> Status <a class="code" href="namespaceplasma.html#aba411eeda1919505149496cce94faad3">WriteMessage</a>(<span class="keywordtype">int</span> fd, int64_t type, int64_t length, uint8_t* bytes);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class= "line"><a name="l00046"></a><span class="lineno"> 46</span> Status <a class="code" href="namespaceplasma.html#a54a35f317b285137bb6ee924b81a86fb">ReadBytes</a>(<span class="keywordtype">int</span> fd, uint8_t* cursor, <span class="keywordtype">size_t</span> length);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> Status <a class="code" href="namespaceplasma.html#a0f1c3f44f2d352035348f0d91c0e5647">ReadMessage</a>(<span class="keywordtype">int</span> fd, int64_t* type, std::vector<uint8_t>* buffer);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a8e7fc2133a26068903ed43616b22b356">bind_ipc_sock</a>(<span class="keyword">const</span> std::string& pathname, < span class="keywordtype">bool</span> shall_listen);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a1fd7c1d47588660de8ed6a8db0fb25d2">connect_ipc_sock</a>(<span class="keyword">const</span> std::string& pathname);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> Status <a class="code" href="namespaceplasma.html#ada38718497b348090aa7ad7f6f4f58bd">ConnectIpcSocketRetry</a>(<span class="keyword">const</span> std::string& pathname, <span class="keywordtype">int</span> num_retries,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  int64_t timeout, <span class="keywordtype">int</span>* fd);</div><div class=" line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">int</span> <a class="code" href="namespaceplasma.html#a921c700c8cae2dd7bf7a47f07c53bd46">AcceptClient</a>(<span class="keywordtype">int</span> socket_fd);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> uint8_t* <a class="code" href="namespaceplasma.html#a8cab2ffcae3618b94645ad0ab8014ba2">read_message_async</a>(<span class="keywordtype">int</span> sock);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> } <span class="comment">// namespace plasma</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></ a><span class="lineno"> 63</span> <span class="preprocessor">#endif // PLASMA_IO_H</span></div><div class="ttc" id="namespaceplasma_html_ada38718497b348090aa7ad7f6f4f58bd"><div class="ttname"><a href="namespaceplasma.html#ada38718497b348090aa7ad7f6f4f58bd">plasma::ConnectIpcSocketRetry</a></div><div class="ttdeci">Status ConnectIpcSocketRetry(const std::string &pathname, int num_retries, int64_t timeout, int *fd)</div></div> <div class="ttc" id="namespaceplasma_html_aacbe7037e6ebb567ec3ce7080979250b"><div class="ttname"><a href="namespaceplasma.html#aacbe7037e6ebb567ec3ce7080979250b">plasma::WriteBytes</a></div><div class="ttdeci">Status WriteBytes(int fd, uint8_t *cursor, size_t length)</div></div> <div class="ttc" id="classarrow_1_1_status_html"><div class="ttname"><a href="classarrow_1_1_status.html">arrow::Status</a></div><div class="ttdef"><b>Definition:</b> status.h:106</div></div> <div class="ttc" id="namespaceplasma_html_a8cab2ffcae3618b94645ad0ab8014ba2"><div class="ttname"><a href="namespaceplasma.html#a8cab2ffcae3618b94645ad0ab8014ba2">plasma::read_message_async</a></div><div class="ttdeci">uint8_t * read_message_async(int sock)</div></div> @@ -75,6 +75,7 @@ $(function() { <div class="ttc" id="namespaceplasma_html_aba411eeda1919505149496cce94faad3"><div class="ttname"><a href="namespaceplasma.html#aba411eeda1919505149496cce94faad3">plasma::WriteMessage</a></div><div class="ttdeci">Status WriteMessage(int fd, int64_t type, int64_t length, uint8_t *bytes)</div></div> <div class="ttc" id="namespaceplasma_html_a1fd7c1d47588660de8ed6a8db0fb25d2"><div class="ttname"><a href="namespaceplasma.html#a1fd7c1d47588660de8ed6a8db0fb25d2">plasma::connect_ipc_sock</a></div><div class="ttdeci">int connect_ipc_sock(const std::string &pathname)</div></div> <div class="ttc" id="namespaceplasma_html"><div class="ttname"><a href="namespaceplasma.html">plasma</a></div><div class="ttdef"><b>Definition:</b> client.h:35</div></div> +<div class="ttc" id="compat_8h_html"><div class="ttname"><a href="compat_8h.html">compat.h</a></div></div> <div class="ttc" id="status_8h_html"><div class="ttname"><a href="status_8h.html">status.h</a></div></div> <div class="ttc" id="namespaceplasma_html_a0f1c3f44f2d352035348f0d91c0e5647"><div class="ttname"><a href="namespaceplasma.html#a0f1c3f44f2d352035348f0d91c0e5647">plasma::ReadMessage</a></div><div class="ttdeci">Status ReadMessage(int fd, int64_t *type, std::vector< uint8_t > *buffer)</div></div> <div class="ttc" id="namespaceplasma_html_a8e7fc2133a26068903ed43616b22b356"><div class="ttname"><a href="namespaceplasma.html#a8e7fc2133a26068903ed43616b22b356">plasma::bind_ipc_sock</a></div><div class="ttdeci">int bind_ipc_sock(const std::string &pathname, bool shall_listen)</div></div> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2thirdparty_2ae_2config_8h.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2thirdparty_2ae_2config_8h.html b/docs/cpp/plasma_2thirdparty_2ae_2config_8h.html index 8e82b50..69be6e1 100644 --- a/docs/cpp/plasma_2thirdparty_2ae_2config_8h.html +++ b/docs/cpp/plasma_2thirdparty_2ae_2config_8h.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/thirdparty/ae/config.h File Reference</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/thirdparty/ae/config.h File Reference</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> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_2thirdparty_2ae_2config_8h_source.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_2thirdparty_2ae_2config_8h_source.html b/docs/cpp/plasma_2thirdparty_2ae_2config_8h_source.html index ea99759..1c3452a 100644 --- a/docs/cpp/plasma_2thirdparty_2ae_2config_8h_source.html +++ b/docs/cpp/plasma_2thirdparty_2ae_2config_8h_source.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/thirdparty/ae/config.h Source File</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/thirdparty/ae/config.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> http://git-wip-us.apache.org/repos/asf/arrow-site/blob/785c5862/docs/cpp/plasma_8h.html ---------------------------------------------------------------------- diff --git a/docs/cpp/plasma_8h.html b/docs/cpp/plasma_8h.html index b62adb6..1708b19 100644 --- a/docs/cpp/plasma_8h.html +++ b/docs/cpp/plasma_8h.html @@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/plasma/plasma.h File Reference</title> +<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/plasma/plasma.h File Reference</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> @@ -85,6 +85,7 @@ $(function() { <code>#include <string></code><br /> <code>#include <unordered_map></code><br /> <code>#include <unordered_set></code><br /> +<code>#include "<a class="el" href="compat_8h_source.html">plasma/compat.h</a>"</code><br /> <code>#include "<a class="el" href="status_8h_source.html">arrow/status.h</a>"</code><br /> <code>#include "<a class="el" href="logging_8h_source.html">arrow/util/logging.h</a>"</code><br /> <code>#include "<a class="el" href="plasma_2common_8h_source.html">plasma/common.h</a>"</code><br />
